Skip to content

Commit

Permalink
nuttx/libc: mutex support to set default mode even configured with pr…
Browse files Browse the repository at this point in the history
…iority protect

Signed-off-by: makejian <[email protected]>
  • Loading branch information
makejian committed Oct 11, 2024
1 parent 34da015 commit 51e05ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libc/pthread/pthread_mutexattr_setprotocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 51e05ec

Please sign in to comment.