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
|
@ -59,7 +59,7 @@ SrsForwarder::SrsForwarder(SrsSource* _source)
|
|||
kbps = new SrsKbps();
|
||||
stream_id = 0;
|
||||
|
||||
pthread = new SrsThread("forward", this, SRS_FORWARDER_SLEEP_US, true);
|
||||
pthread = new SrsReusableThread("forward", this, SRS_FORWARDER_SLEEP_US);
|
||||
queue = new SrsMessageQueue();
|
||||
jitter = new SrsRtmpJitter();
|
||||
|
||||
|
@ -407,7 +407,7 @@ int SrsForwarder::forward()
|
|||
}
|
||||
}
|
||||
|
||||
while (pthread->can_loop()) {
|
||||
while (!pthread->interrupted()) {
|
||||
pprint->elapse();
|
||||
|
||||
// read from client.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue