mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for bug #235, refine the queue recv thread.
This commit is contained in:
parent
0b631ee80d
commit
0e7836868c
2 changed files with 17 additions and 3 deletions
|
@ -87,13 +87,17 @@ public:
|
|||
* @see: SrsRtmpConn::playing
|
||||
* @see: https://github.com/winlinvip/simple-rtmp-server/issues/217
|
||||
*/
|
||||
class SrsQueueRecvThread : virtual public ISrsMessageHandler, virtual public SrsRecvThread
|
||||
class SrsQueueRecvThread : virtual public ISrsMessageHandler
|
||||
{
|
||||
private:
|
||||
std::vector<SrsMessage*> queue;
|
||||
SrsRecvThread trd;
|
||||
public:
|
||||
SrsQueueRecvThread(SrsRtmpServer* rtmp_sdk, int timeout_ms);
|
||||
virtual ~SrsQueueRecvThread();
|
||||
public:
|
||||
virtual int start();
|
||||
virtual void stop();
|
||||
public:
|
||||
virtual bool empty();
|
||||
virtual int size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue