forked from Archive/PX4-Autopilot
commander: Reduce excessive stack size
This commit is contained in:
parent
6d41b5d063
commit
bbb27b8635
|
@ -1170,7 +1170,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||||
/* initialize low priority thread */
|
/* initialize low priority thread */
|
||||||
pthread_attr_t commander_low_prio_attr;
|
pthread_attr_t commander_low_prio_attr;
|
||||||
pthread_attr_init(&commander_low_prio_attr);
|
pthread_attr_init(&commander_low_prio_attr);
|
||||||
pthread_attr_setstacksize(&commander_low_prio_attr, 2100);
|
pthread_attr_setstacksize(&commander_low_prio_attr, 2000);
|
||||||
|
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
(void)pthread_attr_getschedparam(&commander_low_prio_attr, ¶m);
|
(void)pthread_attr_getschedparam(&commander_low_prio_attr, ¶m);
|
||||||
|
|
Loading…
Reference in New Issue