![]() |
nRF Connect SDK API 3.3.99
|
| int lwm2m_os_sem_take | ( | lwm2m_os_sem_t * | sem, |
| int | timeout ) |
#include <lib/bin/lwm2m_carrier/include/lwm2m_os.h>
Take a semaphore.
| sem | Address of the semaphore. |
| timeout | Timeout in milliseconds, or -1 for forever, in which case the semaphore is taken for as long as necessary. |
| 0 | Semaphore taken. |
| -EBUSY | Returned without waiting. |
| -EAGAIN | Waiting period timed out. |