sched/mutex: NXMUTEX_INITIALIZER should enable priority inheritance
and remove the unused macro PRIOINHERIT_FLAGS_DISABLE Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f8d97aea9e
commit
732092570e
@ -37,8 +37,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define NXRMUTEX_NO_HOLDER (pid_t)-1
|
#define NXRMUTEX_NO_HOLDER (pid_t)-1
|
||||||
#define NXMUTEX_INITIALIZER NXSEM_INITIALIZER(1, 0)
|
#define NXMUTEX_INITIALIZER NXSEM_INITIALIZER(1, PRIOINHERIT_FLAGS_ENABLE)
|
||||||
#define NXRMUTEX_INITIALIZER {NXSEM_INITIALIZER(1, 0), \
|
#define NXRMUTEX_INITIALIZER {NXSEM_INITIALIZER(1, PRIOINHERIT_FLAGS_ENABLE), \
|
||||||
NXRMUTEX_NO_HOLDER, 0}
|
NXRMUTEX_NO_HOLDER, 0}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -49,10 +49,8 @@
|
|||||||
/* Bit definitions for the struct sem_s flags field */
|
/* Bit definitions for the struct sem_s flags field */
|
||||||
|
|
||||||
#define PRIOINHERIT_FLAGS_ENABLE (1 << 0) /* Bit 0: Priority inheritance
|
#define PRIOINHERIT_FLAGS_ENABLE (1 << 0) /* Bit 0: Priority inheritance
|
||||||
* is enabled for this semaphore. */
|
* is enabled for this semaphore.
|
||||||
|
*/
|
||||||
#define PRIOINHERIT_FLAGS_DISABLE (0 << 0) /* Bit 0: Priority inheritance
|
|
||||||
* is disabled for this semaphore. */
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Type Declarations
|
* Public Type Declarations
|
||||||
|
Loading…
Reference in New Issue
Block a user