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
76d6449317
commit
211b05fc64
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) {
|
if (send_min_interval > 0) {
|
||||||
srs_usleep(send_min_interval);
|
srs_usleep(send_min_interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Yield to another coroutines.
|
||||||
|
srs_thread_yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue