nrfxlib API 0.1.0
|
int nrf_modem_os_mutex_lock | ( | void * | mutex, |
int | timeout | ||
) |
#include <nrf_modem/include/nrf_modem_os.h>
Lock a mutex.
mutex | The mutex. |
timeout | Timeout in milliseconds. NRF_MODEM_OS_FOREVER indicates infinite timeout. NRF_MODEM_OS_NO_WAIT indicates no timeout. |
0 | on success. |
-NRF_EAGAIN | If the mutex could not be taken. |