1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #195: remove the confuse code st_usleep(0). 2.0.13.

This commit is contained in:
winlin 2014-11-11 13:40:09 +08:00
parent 4f34ac022f
commit 46330dd196
6 changed files with 2 additions and 21 deletions

View file

@ -170,9 +170,6 @@ int SrsEdgeIngester::ingest()
SrsPithyPrint pithy_print(SRS_CONSTS_STAGE_EDGE);
while (pthread->can_loop()) {
// switch to other st-threads.
st_usleep(0);
pithy_print.elapse();
// pithy print
@ -480,9 +477,6 @@ int SrsEdgeForwarder::cycle()
SrsSharedPtrMessageArray msgs(SYS_MAX_EDGE_SEND_MSGS);
while (pthread->can_loop()) {
// switch to other st-threads.
st_usleep(0);
if (send_error_code != ERROR_SUCCESS) {
st_usleep(SRS_EDGE_FORWARDER_ERROR_US);
continue;