public final class ConditionVariable
extends java.lang.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 java.lang.InterruptedException
java.lang.InterruptedException - If the thread is interrupted.