宏定义 |
| #define |
LOS_ERRNO_MUX_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x00) |
| |
Mutex error code: The memory request fails.
|
| #define |
LOS_ERRNO_MUX_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x01) |
| |
Mutex error code: The mutex is not usable.
|
| #define |
LOS_ERRNO_MUX_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x02) |
| |
Mutex error code: Null pointer.
|
| #define |
LOS_ERRNO_MUX_ALL_BUSY LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x03) |
| |
Mutex error code: No mutex is available and the mutex request fails.
|
| #define |
LOS_ERRNO_MUX_UNAVAILABLE LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x04) |
| |
Mutex error code: The mutex fails to be locked in non-blocking mode because it is locked by another thread.
|
| #define |
LOS_ERRNO_MUX_PEND_INTERR LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x05) |
| |
Mutex error code: The mutex is being locked during an interrupt.
|
| #define |
LOS_ERRNO_MUX_PEND_IN_LOCK LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x06) |
| |
Mutex error code: A thread locks a mutex after waiting for the mutex to be unlocked by another thread when the task scheduling is disabled.
|
| #define |
LOS_ERRNO_MUX_TIMEOUT LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x07) |
| |
Mutex error code: The mutex locking times out.
|
| #define |
LOS_ERRNO_MUX_OVERFLOW LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x08) |
| |
Value: 0x02001d08 Not in use temporarily.
|
| #define |
LOS_ERRNO_MUX_PENDED LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x09) |
| |
Mutex error code: The mutex to be deleted is being locked.
|
| #define |
LOS_ERRNO_MUX_GET_COUNT_ERR LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x0A) |
| |
Value: 0x02001d0A Not in use temporarily.
|
| #define |
LOS_ERRNO_MUX_REG_ERROR LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x0B) |
| |
Value: 0x02001d0B Not in use temporarily.
|
| #define |
LOS_ERRNO_MUX_MAXNUM_ZERO LOS_ERRNO_OS_ERROR(LOS_MOD_MUX, 0x0C) |
| |
Mutex error code: LOS_ERRNO_MUX_MAXNUM_ZERO is zero.
|
函数 |
| UINT32 |
LOS_MuxCreate (UINT32 *puwMuxHandle) |
| |
Create a mutex.
|
| UINT32 |
LOS_MuxDelete (UINT32 puwMuxHandle) |
| |
Delete a mutex.
|
| UINT32 |
LOS_MuxPend (UINT32 uwMuxHandle, UINT32 uwTimeout) |
| |
Wait to lock a mutex.
|
| UINT32 |
LOS_MuxPost (UINT32 uwMuxHandle) |
| |
Release a mutex.
|