pthread_create: Fix an (unlikely) error in fallback value in the event of a failure (which should never occur)

This commit is contained in:
Gregory Nutt 2015-07-23 11:25:25 -06:00
parent 146bdc3c93
commit aa90da2bc8
2 changed files with 3 additions and 1 deletions

View File

@ -10754,3 +10754,5 @@
* include/nuttx/sched.h, sched/, and fs/procfs: Increase the size of
the scheduling policy field from 1 to 2 bits to allow additional,
planned scheduling policies (2015-07-23).
* pthread_create: Fix an (unlikely) error in fallback value in the
event of a failure (which should never occur) (2015-07-23).

View File

@ -324,7 +324,7 @@ int pthread_create(FAR pthread_t *thread, FAR const pthread_attr_t *attr,
}
else
{
priority = SCHED_FIFO;
priority = PTHREAD_DEFAULT_PRIORITY;
}
#if CONFIG_RR_INTERVAL > 0