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