Skip to content

Commit

Permalink
For #2194, yield for high performance timer, for live player
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 19, 2021
1 parent c0fda42 commit d1bcc03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_rtmp_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1bcc03

Please sign in to comment.