nrfxlib API 2.8.99
|
int nrf_modem_os_sem_init | ( | void ** | sem, |
unsigned int | initial_count, | ||
unsigned int | limit ) |
#include <nrf_modem/include/nrf_modem_os.h>
Initialize a semaphore.
The function initializes a semaphore and returns its address as an output. If an address of an already allocated semaphore is provided as an input, the allocation part is skipped and the semaphore is only reinitialized.
[in,out] | sem | The address of the semaphore. |
initial_count | Initial semaphore count. | |
limit | Maximum semaphore count. |