public class LightweightCondition extends Object
Constructor and Description |
---|
LightweightCondition(Thread thread)
Constructur.
|
Modifier and Type | Method and Description |
---|---|
boolean |
await(long timeout)
Causes the current thread to wait until it is signalled or interrupted, or the specified waiting time elapses.
|
void |
signal()
Wakes up one waiting thread.
|
public LightweightCondition(Thread thread)
thread
- thread to be in await and signaledpublic 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 © 2005–2022 Onix Solutions. All rights reserved.