Function arceos_posix_api::sys_pthread_mutex_trylock
source · pub fn sys_pthread_mutex_trylock(mutex: *mut pthread_mutex_t) -> c_int
Available on crate feature
multitask
only.Expand description
Lock the given mutex like sys_pthread_mutex_lock, except that it does not block the calling thread if the mutex is already locked.
Instead, it returns with the error code EBUSY.