mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
pthread: restore pthread mutex default protocol POSIX compatibility
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5a0ab205ca
commit
2447b7bd9a
@@ -658,6 +658,24 @@ config PTHREAD_MUTEX_DEFAULT_UNSAFE
|
||||
|
||||
endchoice # Default NORMAL mutex robustness
|
||||
|
||||
choice
|
||||
prompt "Default pthread mutex protocol"
|
||||
default PTHREAD_MUTEX_DEFAULT_PRIO_NONE
|
||||
|
||||
config PTHREAD_MUTEX_DEFAULT_PRIO_NONE
|
||||
bool "PTHREAD_PRIO_NONE default"
|
||||
---help---
|
||||
By default, pthread mutexes utilize PTHREAD_PRIO_NONE protocol (standard).
|
||||
|
||||
config PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT
|
||||
bool "PTHREAD_PRIO_INHERIT default"
|
||||
depends on PRIORITY_INHERITANCE
|
||||
---help---
|
||||
By default, pthread mutexes utilize PTHREAD_PRIO_INHERIT protocol
|
||||
(POSIX non-standard but a reasonable choice for most real-time systems).
|
||||
|
||||
endchoice # Default pthread mutex protocol
|
||||
|
||||
config PTHREAD_CLEANUP
|
||||
bool "pthread cleanup stack"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user