mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
lockstep_scheduler: fix system_sleep -> system_usleep
The effect was that threads that tried to exit were unnecessarily kept running. This did not cause problems except for increased resource usage.
This commit is contained in:
@@ -26,7 +26,7 @@ private:
|
||||
// we need to wait until it's removed.
|
||||
while (!removed) {
|
||||
#ifndef UNIT_TESTS // unit tests don't define system_usleep and execute faster w/o sleeping here
|
||||
system_sleep(5000);
|
||||
system_usleep(5000);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user