mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
Documentation:add nxmutex Description
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -105,6 +105,12 @@ different thread posts the semaphore. Priority inheritance should
|
||||
*never* be used in this signaling case. Subtle, strange behaviors may
|
||||
result.
|
||||
|
||||
Semaphore does not support priority inheritance by default. If you need to
|
||||
use a semaphore as a mutex you need to change its default behavior.
|
||||
|
||||
In user space, it is recommended to use pthread_mutex instead of
|
||||
semaphore for resource protection
|
||||
|
||||
When priority inheritance is enabled with
|
||||
``CONFIG_PRIORITY_INHERITANCE``, the default *protocol* for the
|
||||
semaphore will be to use priority inheritance. For signaling semaphores,
|
||||
|
||||
Reference in New Issue
Block a user