Skip to content

Commit

Permalink
fix cpu rate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ingangi committed May 16, 2019
1 parent f7c9a9a commit cf7ebaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engin/chroutine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ int chroutine_thread_t::schedule()
while (!m_need_stop) {
int processed = 0;
processed += select_all();
processed += pick_run_chroutine() == INVALID_ID ? 0 : 1;
processed += pick_run_chroutine();
if (processed == 0)
thread_ms_sleep(10);
}
Expand Down

0 comments on commit cf7ebaf

Please sign in to comment.