riot_sys

Function rmutex_trylock

Source
pub unsafe extern "C" fn rmutex_trylock(
    rmutex: *mut rmutex_t,
) -> c_int
Expand description

@brief Tries to get a recursive mutex, non-blocking.

@param[in] rmutex Recursive mutex object to lock. Has to be initialized first. Must not be NULL.

@return 1 if mutex was unlocked, now it is locked. @return 0 if the mutex was locked.