Function cloudabi::condvar_signal [] [src]

pub unsafe fn condvar_signal(
    condvar_: *mut condvar,
    scope_: scope,
    nwaiters_: nthreads
) -> errno

Wakes up threads waiting on a userspace condition variable.

If an invocation of this system call causes all waiting threads to be woken up, the value of the condition variable is set to CONDVAR_HAS_NO_WAITERS. As long as the condition variable is set to this value, it is not needed to invoke this system call.

Parameters

condvar: The userspace condition variable that has waiting threads.

scope: Whether the condition variable is stored in private or shared memory.

nwaiters: The number of threads that need to be woken up. If it exceeds the number of waiting threads, all threads are woken up.