This file defines mutex platform abstraction interface.
More...
Go to the source code of this file.
|
|
typedef struct iotmiPal_MutexStruct * | iotmiPal_MutexHandle_t |
| |
This file defines mutex platform abstraction interface.
◆ iotmiPal_mutexCreate()
| iotmiPal_MutexHandle_t iotmiPal_mutexCreate |
( |
void |
| ) |
|
Create a mutex.
- Returns
- Pointer to the mutex object on success, NULL on failure.
◆ iotmiPal_mutexDestroy()
| int iotmiPal_mutexDestroy |
( |
iotmiPal_MutexHandle_t |
mutex | ) |
|
Destroy a mutex.
- Parameters
-
| [in] | mutex | Pointer to the mutex object to destroy. |
- Returns
- 0 on success, non-zero on failure.
◆ iotmiPal_mutexLock()
| int iotmiPal_mutexLock |
( |
iotmiPal_MutexHandle_t |
mutex | ) |
|
Lock a mutex.
- Parameters
-
| [in] | mutex | Pointer to the mutex object to lock. |
- Returns
- 0 on success, non-zero on failure.
◆ iotmiPal_mutexUnlock()
| int iotmiPal_mutexUnlock |
( |
iotmiPal_MutexHandle_t |
mutex | ) |
|
Unlock a mutex.
- Parameters
-
| [in] | mutex | Pointer to the mutex object to unlock. |
- Returns
- 0 on success, non-zero on failure.