public class ConditionVariable
extends java.lang.Object
Constructor and Description |
---|
ConditionVariable(Semaphore sem)
Creates a condition variable associated with the semaphore sem
|
Modifier and Type | Method and Description |
---|---|
void |
cvNotify()
Notifies one thread that the condition has occured
|
void |
cvNotifyAll()
Notifies all threads that the condition has occured
|
void |
cvWait()
Waits for the condition to occur
|
public ConditionVariable(Semaphore sem)