Browse Source

Increase stack size of wq:manager and worker threads for 64 bit targets

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
master
Jukka Laitinen 4 years ago committed by Daniel Agar
parent
commit
523578d2ce
  1. 4
      platforms/common/px4_work_queue/WorkQueueManager.cpp

4
platforms/common/px4_work_queue/WorkQueueManager.cpp

@ -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);

Loading…
Cancel
Save