[][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.

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.