AWS IoT Device SDK C: Platform
Platform portability layer
Return to main page ↑
IotMutex_Lock

Lock a mutex. This function should only return when the mutex is locked; it is not expected to fail.

void IotMutex_Lock( IotMutex_t * pMutex );

This function blocks and waits until a mutex is available. It waits forever (deadlocks) if pMutex is already locked and never unlocked.

Parameters
[in]pMutexThe mutex to lock.
See also
IotMutex_TryLock for a nonblocking lock.