public class LightweightCondition extends Object
| Constructor and Description |
|---|
LightweightCondition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long timeout)
Causes the current thread to wait until it is signaled or interrupted, or the specified waiting time elapses.
|
void |
signal()
Wakes up one waiting thread.
|
public boolean await(long timeout)
timeout - timeout in nanosecondspublic void signal()
await() then it will unblock. Otherwise, its next call to await
is guaranteed not to block.Copyright © 2014–2025 Onix Solutions. All rights reserved.