mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #2194, yield for high performance timer, for live player
This commit is contained in:
parent
c0fda42743
commit
d1bcc03d9a
1 changed files with 3 additions and 0 deletions
|
@ -826,6 +826,9 @@ srs_error_t SrsRtmpConn::do_playing(SrsSource* source, SrsConsumer* consumer, Sr
|
|||
if (send_min_interval > 0) {
|
||||
srs_usleep(send_min_interval);
|
||||
}
|
||||
|
||||
// Yield to another coroutines.
|
||||
srs_thread_yield();
|
||||
}
|
||||
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue