forked from Archive/PX4-Autopilot
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:
parent
08298ab3d0
commit
e999075ac7
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue