esp_openthread_lock_acquire() function
This function acquires the OpenThread API lock.
Arguments
block_ticks
The maximum number of RTOS ticks to wait for the lock.
Return value
- True on lock acquired - False on failing to acquire the lock with the timeout.
Notes
Every Openthread APIs that takes an otInstance argument MUST be protected with this API lock except that the call site is in Openthread callbacks.
Examples
esp_openthread_lock_acquire() is referenced by 2 libraries and example projects: