mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 07:01:35 +08:00
QuRT: Set thread attributes correctly
This commit is contained in:
@@ -161,6 +161,13 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
|
|||||||
return (rv < 0) ? rv : -rv;
|
return (rv < 0) ? rv : -rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rv = pthread_attr_getschedparam(&attr, ¶m);
|
||||||
|
|
||||||
|
if (rv != 0) {
|
||||||
|
PX4_WARN("px4_task_spawn_cmd: failed to get thread sched param");
|
||||||
|
return (rv < 0) ? rv : -rv;
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
rv = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
rv = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user