com.caucho.util
Class CyclicBarrier

java.lang.Object
  extended by com.caucho.util.CyclicBarrier

public class CyclicBarrier
extends java.lang.Object

Waits for n threads.


Constructor Summary
CyclicBarrier(int parties)
           
 
Method Summary
 int await()
          Allocates the semaphore, returns true on success.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyclicBarrier

public CyclicBarrier(int parties)
Method Detail

await

public int await()
          throws java.lang.InterruptedException
Allocates the semaphore, returns true on success.

Throws:
java.lang.InterruptedException