com.android.builder.tasks
Class BooleanLatch

java.lang.Object
  extended by 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.


Constructor Summary
BooleanLatch()
           
 
Method Summary
 void await()
           
 boolean isSignalled()
           
 void signal()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanLatch

public BooleanLatch()
Method Detail

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