|
|
|
@ -266,7 +266,7 @@ WorkQueueManagerRun(int, char **)
@@ -266,7 +266,7 @@ WorkQueueManagerRun(int, char **)
|
|
|
|
|
#if defined(__PX4_QURT) |
|
|
|
|
const size_t stacksize = math::max(8 * 1024, PX4_STACK_ADJUSTED(wq->stacksize)); |
|
|
|
|
#elif defined(__PX4_NUTTX) |
|
|
|
|
const size_t stacksize = math::max((uint16_t)PTHREAD_STACK_MIN, wq->stacksize); |
|
|
|
|
const size_t stacksize = math::max(PTHREAD_STACK_MIN, PX4_STACK_ADJUSTED(wq->stacksize)); |
|
|
|
|
#elif defined(__PX4_POSIX) |
|
|
|
|
// On posix system , the desired stacksize round to the nearest multiplier of the system pagesize
|
|
|
|
|
// It is a requirement of the pthread_attr_setstacksize* function
|
|
|
|
@ -332,7 +332,7 @@ WorkQueueManagerStart()
@@ -332,7 +332,7 @@ WorkQueueManagerStart()
|
|
|
|
|
int task_id = px4_task_spawn_cmd("wq:manager", |
|
|
|
|
SCHED_DEFAULT, |
|
|
|
|
SCHED_PRIORITY_MAX, |
|
|
|
|
1280, |
|
|
|
|
PX4_STACK_ADJUSTED(1280), |
|
|
|
|
(px4_main_t)&WorkQueueManagerRun, |
|
|
|
|
nullptr); |
|
|
|
|
|
|
|
|
|