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

◆ lwm2m_os_sem_take()

int lwm2m_os_sem_take ( lwm2m_os_sem_t sem,
int  timeout 
)

#include <lib/bin/lwm2m_carrier/include/lwm2m_os.h>

Take a semaphore.

Parameters
semAddress of the semaphore.
timeoutTimeout in ms, or -1 for forever, in which case the semaphore is taken for as long as necessary.
Return values
0Semaphore taken.
-EBUSYReturned without waiting.
-EAGAINWaiting period timed out.