pthreads :: PthreadCond :: defaultinit
# Condition variable
class PthreadCond
super FinalizableOnce
private var native = new NativePthreadCond
# Destroy `self`
redef fun finalize_once do native.destroy
# Signal at least one thread waiting to wake up
fun signal: Int do return native.signal
# Signal all the waiting threads to wake up
fun broadcast do native.broadcast
# Make the current thread waiting for a signal ( `mutex` should be locked)
fun wait(mutex: Mutex) do native.wait(mutex.native.as(not null))
end
lib/pthreads/pthreads.nit:426,1--443,3