nrfxlib API 2.8.99
|
int nrf_modem_os_sem_take | ( | void * | sem, |
int | timeout ) |
#include <nrf_modem/include/nrf_modem_os.h>
Take a semaphore.
sem | The semaphore. |
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 semaphore could not be taken. |