![]() |
nRF Connect SDK API 3.3.99
|
| int multithreading_lock_acquire | ( | k_timeout_t | timeout | ) |
Try to take the lock with the specified blocking behavior.
This API call will be blocked for the time specified by timeout and then return error code.
| [in] | timeout | Timeout value for the locking API. |
| 0 | Success |
| -EBUSY | Returned without waiting. |
| -EAGAIN | Waiting period timed out. |