Class Barrier


  • public class Barrier
    extends 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().
    • Field Detail

      • threshold

        protected int threshold
      • count

        protected int count
    • Constructor Detail

      • Barrier

        public Barrier​(int t)