IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Typedefs | Functions
iotmi_pal_Mutex.h File Reference

This file defines mutex platform abstraction interface. More...

Go to the source code of this file.

Typedefs

typedef struct iotmiPal_MutexStruct * iotmiPal_MutexHandle_t
 

Functions

iotmiPal_MutexHandle_t iotmiPal_mutexCreate (void)
 Create a mutex.
 
int iotmiPal_mutexLock (iotmiPal_MutexHandle_t mutex)
 Lock a mutex.
 
int iotmiPal_mutexUnlock (iotmiPal_MutexHandle_t mutex)
 Unlock a mutex.
 
int iotmiPal_mutexDestroy (iotmiPal_MutexHandle_t mutex)
 Destroy a mutex.
 

Detailed Description

This file defines mutex platform abstraction interface.

Function Documentation

◆ 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]mutexPointer 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]mutexPointer 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]mutexPointer to the mutex object to unlock.
Returns
0 on success, non-zero on failure.