mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the thread to three category.
This commit is contained in:
parent
2f0ef87d6d
commit
e5f449ce36
25 changed files with 648 additions and 416 deletions
|
@ -1157,12 +1157,11 @@ SrsStreamCache::SrsStreamCache(SrsSource* s, SrsRequest* r)
|
|||
req = r->copy();
|
||||
source = s;
|
||||
queue = new SrsMessageQueue(true);
|
||||
pthread = new SrsThread("http-stream", this, 0, false);
|
||||
pthread = new SrsEndlessThread("http-stream", this);
|
||||
}
|
||||
|
||||
SrsStreamCache::~SrsStreamCache()
|
||||
{
|
||||
pthread->stop();
|
||||
srs_freep(pthread);
|
||||
|
||||
srs_freep(queue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue