nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_modem_os_mutex_lock()

int nrf_modem_os_mutex_lock ( void * mutex,
int timeout )

#include <nrf_modem/include/nrf_modem_os.h>

Lock a mutex.

Parameters
mutexThe mutex.
timeoutTimeout in milliseconds. NRF_MODEM_OS_FOREVER indicates infinite timeout. NRF_MODEM_OS_NO_WAIT indicates no timeout.
Return values
0on success.
-NRF_EAGAINIf the mutex could not be taken.