PDK API Guide for J721E
|
MutexP interface
Files | |
file | MutexP.h |
Mailbox module for the RTOS Porting Interface. | |
Data Structures | |
struct | MutexP_Object |
MutexP Mutex Object. More... | |
Functions | |
MutexP_Handle | MutexP_create (MutexP_Object *mutexObj) |
Function to create a mutex. More... | |
MutexP_Status | MutexP_delete (MutexP_Handle handle) |
Function to delete a mutex. More... | |
MutexP_Status | MutexP_unlock (MutexP_Handle handle) |
Function to unlock the mutex. More... | |
MutexP_Status | MutexP_lock (MutexP_Handle handle, uint32_t timeout) |
Function to lock the mutex. More... | |
Typedefs | |
typedef void * | MutexP_Handle |
Opaque client reference to an instance of a MutexP. More... | |
Enumerations | |
enum | MutexP_Status { MutexP_OK = 0, MutexP_FAILURE = (-(int32_t)1), MutexP_TIMEOUT = (-(int32_t)2) } |
Status codes for MutexP APIs. More... | |
Macros | |
#define | MutexP_WAIT_FOREVER (~((uint32_t)0U)) |
Wait forever define. More... | |
#define | MutexP_NO_WAIT ((uint32_t)0U) |
No wait define. More... | |
#define MutexP_WAIT_FOREVER (~((uint32_t)0U)) |
Wait forever define.
#define MutexP_NO_WAIT ((uint32_t)0U) |
No wait define.
typedef void* MutexP_Handle |
Opaque client reference to an instance of a MutexP.
A MutexP_Handle returned from the MutexP_create represents that instance and is used in the other instance based functions
enum MutexP_Status |
MutexP_Handle MutexP_create | ( | MutexP_Object * | mutexObj | ) |
Function to create a mutex.
mutexObj | Pointer to the mutex object |
MutexP_Status MutexP_delete | ( | MutexP_Handle | handle | ) |
Function to delete a mutex.
handle | A MutexP_Handle returned from MutexP_create |
MutexP_Status MutexP_unlock | ( | MutexP_Handle | handle | ) |
Function to unlock the mutex.
handle | A MutexP_Handle returned from MutexP_create |
MutexP_Status MutexP_lock | ( | MutexP_Handle | handle, |
uint32_t | timeout | ||
) |
Function to lock the mutex.
handle | A MutexP_Handle returned from MutexP_create |
timeout | Timeout (in milliseconds) to wait for lock the mutex. |