public final class ConditionVariable extends Object
Constructor and Description |
---|
ConditionVariable() |
Modifier and Type | Method and Description |
---|---|
void |
block()
Blocks until the condition is opened.
|
boolean |
close()
Closes the condition.
|
boolean |
open()
Opens the condition and releases all threads that are blocked.
|
public boolean open()
public boolean close()
public void block() throws InterruptedException
InterruptedException
- If the thread is interrupted.