Function hermit_abi::sem_timedwait

source ·
pub unsafe extern "C" fn sem_timedwait(
    sem: *const c_void,
    ms: u32
) -> i32
Expand description

decrement a semaphore

sem_timedwait() decrements the semaphore pointed to by sem. If the semaphore’s value is greater than zero, then the the function returns immediately. If the semaphore currently has the value zero, then the call blocks until either it becomes possible to perform the decrement of the time limit to wait for the semaphore is expired. A time limit ms of means infinity waiting time.