mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
Simulation: Set scheduling policy RR for lockstep
This should ensure that all processes do still run at full load.
This commit is contained in:
1 parent
663436fd47
commit
742b1839d5
2 files changed
+9
No files matched your search
@@ -265,7 +265,12 @@ WorkQueueManagerRun(int, char **)
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
// schedule policy FIFO
|
||||
|
||||
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
|
||||
int ret_setschedpolicy = pthread_attr_setschedpolicy(&attr, SCHED_RR);
|
||||
#else
|
||||
int ret_setschedpolicy = pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
|
||||
#endif
|
||||
|
||||
if (ret_setschedpolicy != 0) {
|
||||
PX4_ERR("failed to set sched policy SCHED_FIFO (%i)", ret_setschedpolicy);
|
||||
|
||||
Reference in new issue
Block a user