Skip to content
Snippets Groups Projects
Commit ff0618a8 authored by Mark Charlebois's avatar Mark Charlebois Committed by Julian Oes
Browse files

Set the stack size for qurt

parent d4811bc1
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,14 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
return (rv < 0) ? rv : -rv;
}
rv = pthread_attr_setstacksize(&attr, stack_size);
if (rv != 0)
{
PX4_ERR("pthread_attr_setstacksize returned error");
return (rv < 0) ? rv : -rv;
}
rv = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
if (rv != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment