[−][src]Function mynewt::kernel::os::os_sem_pend
pub unsafe extern "C" fn os_sem_pend(
sem: *mut os_sem,
timeout: os_time_t
) -> os_error_t
os sem pend
Pend (wait) for a semaphore.
mu
: Pointer to semaphore.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 Semaphore passed in was NULL. OS_TIMEOUT Semaphore was owned by another task and timeout=0 OS_OK no error.