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