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
In OpenThread API context, it waits for some actions to be done in other tasks (like lwip), after task switching, it needs to call OpenThread API again. Normally it's not allowed, since the previous OpenThread API lock is not released yet. This task_switching lock allows the OpenThread API can be called in this case. Please use esp_openthread_lock_acquire() for normal cases.
Examples
esp_openthread_task_switching_lock_acquire() is referenced by 3 libraries and example projects: