1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Cleanup server for GMC, by WaitGroup to destroy. (#2247). v4.0.206

This commit is contained in:
winlin 2021-11-17 08:23:32 +08:00
parent 73c1392748
commit 63da0dca92
18 changed files with 114 additions and 42 deletions

View file

@ -26,6 +26,7 @@ class SrsRequest;
class SrsSdp;
class SrsRtcSource;
class SrsResourceManager;
class SrsWaitGroup;
// The UDP black hole, for developer to use wireshark to catch plaintext packets.
// For example, server receive UDP packets at udp://8000, and forward the plaintext packet to black hole,
@ -137,7 +138,7 @@ public:
virtual ~RtcServerAdapter();
public:
virtual srs_error_t initialize();
virtual srs_error_t run();
virtual srs_error_t run(SrsWaitGroup* wg);
virtual void stop();
};