public class Barrier extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected int |
threshold |
Constructor and Description |
---|
Barrier(int t) |
Modifier and Type | Method and Description |
---|---|
void |
action()
What to do when everyone reaches barrier
|
void |
waitForRelease() |
public void waitForRelease() throws InterruptedException
InterruptedException
public void action()
Copyright © 1992–2015 ANTLR. All rights reserved.