From b27272936b744b8e9e53d0acea00fef7a528b949 Mon Sep 17 00:00:00 2001 From: makejian Date: Wed, 9 Oct 2024 16:47:34 +0800 Subject: [PATCH] nuttx/libc: mutex support to set default mode even configured with priority protect Signed-off-by: makejian --- libs/libc/pthread/pthread_mutexattr_setprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/pthread/pthread_mutexattr_setprotocol.c b/libs/libc/pthread/pthread_mutexattr_setprotocol.c index a0578948c2..9599627096 100644 --- a/libs/libc/pthread/pthread_mutexattr_setprotocol.c +++ b/libs/libc/pthread/pthread_mutexattr_setprotocol.c @@ -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;