Class SynchronizationBarrier


  • public final class SynchronizationBarrier
    extends Object
    SynchronizationBarrier
    • Constructor Detail

      • SynchronizationBarrier

        public SynchronizationBarrier()
    • Method Detail

      • addParty

        public void addParty()
        Increment the number of involved parties
      • isReached

        public boolean isReached()
        Test if the synchronization point was reached
      • reach

        public void reach()
        Indicate that the current thread reached the synchronization barrier. If all parties have reached the barrier, this wakes up all waiting threads.
      • reset

        public void reset()
        Reset the synchronization barrier