mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the thread, add all callback.
This commit is contained in:
parent
e5f449ce36
commit
cfc0877ec9
9 changed files with 341 additions and 57 deletions
|
@ -79,10 +79,10 @@ public:
|
|||
/**
|
||||
* the recv thread, use message handler to handle each received message.
|
||||
*/
|
||||
class SrsRecvThread : public ISrsReusableThreadHandler
|
||||
class SrsRecvThread : public ISrsReusableThread2Handler
|
||||
{
|
||||
protected:
|
||||
SrsReusableThread* trd;
|
||||
SrsReusableThread2* trd;
|
||||
ISrsMessageHandler* handler;
|
||||
SrsRtmpServer* rtmp;
|
||||
int timeout;
|
||||
|
@ -92,9 +92,10 @@ public:
|
|||
public:
|
||||
virtual int start();
|
||||
virtual void stop();
|
||||
virtual int cycle();
|
||||
virtual void stop_loop();
|
||||
// interface ISrsReusableThread2Handler
|
||||
public:
|
||||
virtual int cycle();
|
||||
virtual void on_thread_start();
|
||||
virtual void on_thread_stop();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue