pub unsafe extern "C" fn ztimer_mutex_lock_timeout(
    clock: *mut ztimer_clock_t,
    mutex: *mut mutex_t,
    timeout: u32
) -> c_int
Expand description

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

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

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