Top Description Fields Constructors Methods
org.antlr.misc

public Class Barrier

extends Object
Class Inheritance

A very simple barrier wait. Once a thread has requested a wait on the barrier with waitForRelease, it cannot fool the barrier into releasing by "hitting" the barrier multiple times-- the thread is blocked on the wait().

Field Summary

Modifier and TypeField and Description
protected int
protected int

Constructor Summary

AccessConstructor and Description
public
Barrier(int t)

Method Summary

Modifier and TypeMethod and Description
public void
action()

What to do when everyone reaches barrier

public synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
protected int count
thresholdback to summary
protected int threshold

Constructor Detail

Barrierback to summary
public Barrier(int t)

Method Detail

actionback to summary
public void action()

What to do when everyone reaches barrier

waitForReleaseback to summary
public synchronized void waitForRelease() throws InterruptedException