nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ lwm2m_os_sem_init()

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.

Parameters
semAddress of the pointer to the semaphore.
initial_countInitial semaphore count.
limitMaximum permitted semaphore count.
Return values
0Semaphore created successfully.
-EINVALInvalid values.