Skip to content

Commit

Permalink
Logger: Adjust pthread stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Sep 11, 2016
1 parent 9a8e6de commit bb48787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/logger/log_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int LogWriter::thread_start(pthread_t &thread)
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
(void)pthread_attr_setschedparam(&thr_attr, &param);

pthread_attr_setstacksize(&thr_attr, 1024);
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1024));

int ret = pthread_create(&thread, &thr_attr, &LogWriter::run_helper, this);
pthread_attr_destroy(&thr_attr);
Expand Down

0 comments on commit bb48787

Please sign in to comment.