[−][src]Function mynewt::kernel::os::os_mutex_pend
pub unsafe extern "C" fn os_mutex_pend(
mu: *mut os_mutex,
timeout: os_time_t
) -> os_error_t
Pend (wait) for a mutex.
mu
: Pointer to mutex.timeout
: Timeout, in os ticks. A timeout of 0 means do not wait if not available. A timeout of OS_TIMEOUT_NEVER means wait forever.
Return: os_error_t OS_INVALID_PARM Mutex passed in was NULL. OS_TIMEOUT Mutex was owned by another task and timeout=0 OS_OK no error.