mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, the consumer always alive longer than queue recv thread.
This commit is contained in:
parent
89a3cf9efe
commit
a402ca7120
4 changed files with 19 additions and 25 deletions
|
@ -113,9 +113,9 @@ private:
|
|||
SrsRtmpServer* rtmp;
|
||||
// the recv thread error code.
|
||||
int recv_error_code;
|
||||
SrsConsumer *_consumer;
|
||||
SrsConsumer* _consumer;
|
||||
public:
|
||||
SrsQueueRecvThread(SrsRtmpServer* rtmp_sdk, int timeout_ms);
|
||||
SrsQueueRecvThread(SrsConsumer* consumer, SrsRtmpServer* rtmp_sdk, int timeout_ms);
|
||||
virtual ~SrsQueueRecvThread();
|
||||
public:
|
||||
virtual int start();
|
||||
|
@ -132,8 +132,6 @@ public:
|
|||
public:
|
||||
virtual void on_thread_start();
|
||||
virtual void on_thread_stop();
|
||||
public:
|
||||
virtual void set_consumer(SrsConsumer *consumer);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue