riot_sys::bindgen

Function ztimer_rmutex_lock_timeout

Source
pub unsafe extern "C" fn ztimer_rmutex_lock_timeout(
    clock: *mut ztimer_clock_t,
    rmutex: *mut rmutex_t,
    timeout: u32,
) -> c_int
Expand description

@brief Try to lock the given rmutex, but give up after @p timeout

@param[in] clock ztimer clock to operate on @param[in,out] rmutex rmutex object to lock @param[in] timeout timeout after which to give up

@retval 0 Success, caller has the rmutex @retval -ECANCELED Failed to obtain rmutex within @p timeout