程序包 org.antlr.misc
类 Barrier
- java.lang.Object
-
- org.antlr.misc.Barrier
-
public class Barrier extends java.lang.Object
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().
-
-
构造器概要
构造器 构造器 说明 Barrier(int t)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
action()
What to do when everyone reaches barriervoid
waitForRelease()
-