Fix formatting

This commit is contained in:
Lorenz Meier 2016-02-21 20:41:00 +01:00
parent 9f5469ab1f
commit be3863d99f
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
}
#ifndef __PX4_DARWIN
if (stack_size < PTHREAD_STACK_MIN) {
stack_size = PTHREAD_STACK_MIN;
}
@ -184,6 +185,7 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
PX4_ERR("pthread_attr_setstacksize to %d returned error (%d)", stack_size, rv);
return (rv < 0) ? rv : -rv;
}
#endif
rv = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);