Function hermit_abi::sem_timedwait
source · pub unsafe extern "C" fn sem_timedwait(
sem: *mut sem_t,
abs_timeout: *const timespec,
) -> 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.