nuttx/libc: mutex support to set default mode even configured with priority protect
Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
e8a890ef42
commit
b27272936b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ int pthread_mutexattr_setprotocol(FAR pthread_mutexattr_t *attr,
|
|||
{
|
||||
case PTHREAD_PRIO_NONE:
|
||||
#if defined(CONFIG_PRIORITY_INHERITANCE) || defined(CONFIG_PRIORITY_PROTECT)
|
||||
attr->proto = PTHREAD_PRIO_INHERIT;
|
||||
attr->proto = PTHREAD_PRIO_NONE;
|
||||
#endif
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue