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

◆ nrf_modem_os_mutex_init()

int nrf_modem_os_mutex_init ( void ** mutex)

#include <nrf_modem/include/nrf_modem_os.h>

Initialize a mutex.

The function shall allocate and initialize a mutex and return its address as an output. If an address of an already allocated mutex is provided as an input, the allocation part is skipped and the mutex is only reinitialized.

Parameters
[in,out]mutexThe address of the mutex.
Returns
0 on success, a negative errno otherwise.