![]() |
nRF Connect SDK API 3.3.99
|
| int lwm2m_os_sem_init | ( | lwm2m_os_sem_t ** | sem, |
| unsigned int | initial_count, | ||
| unsigned int | limit ) |
#include <lib/bin/lwm2m_carrier/include/lwm2m_os.h>
Initialize a semaphore.
| sem | Address of the pointer to the semaphore. |
| initial_count | Initial semaphore count. |
| limit | Maximum permitted semaphore count. |
| 0 | Semaphore created successfully. |
| -EINVAL | Invalid values. |