Function hermit_abi::sem_trywait
source ยท pub unsafe extern "C" fn sem_trywait(sem: *mut sem_t) -> i32
Expand description
try to decrement a semaphore
sem_trywait() is the same as sem_timedwait(), except that if the decrement cannot be immediately performed, then call returns a negative value instead of blocking.