com.android.builder.tasks
Class BooleanLatch
java.lang.Object
com.android.builder.tasks.BooleanLatch
public class BooleanLatch
- extends java.lang.Object
Implementation of a 2 state boolean latch, which can either be signaled or not.
Thread can block on the signal using the await()
method, worker threads can
release blocked threads by using the signal()
method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BooleanLatch
public BooleanLatch()
isSignalled
public boolean isSignalled()
signal
public void signal()
await
public void await()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object