esp_idf_svc::sys

Function esp_openthread_lock_acquire

Source
pub unsafe extern "C" fn esp_openthread_lock_acquire(
    block_ticks: u32,
) -> bool
Expand description

@brief This function acquires the OpenThread API lock.

@note Every OT APIs that takes an otInstance argument MUST be protected with this API lock except that the call site is in OT callbacks.

@param[in] block_ticks The maxinum number of RTOS ticks to wait for the lock.

@return - True on lock acquired - False on failing to acquire the lock with the timeout.