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:
makejian 2024-10-09 16:47:34 +08:00 committed by Xiang Xiao
parent e8a890ef42
commit b27272936b

View file

@ -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;