Function hermit_abi::sem_trywait

source ·
pub unsafe extern "C" fn sem_trywait(sem: *const c_void) -> 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.