Class SpinBarrier

java.lang.Object
org.boxutil.util.concurrent.SpinBarrier

public class SpinBarrier extends Object
  • Field Details

  • Constructor Details

    • SpinBarrier

      public SpinBarrier(int threadNum)
      Parameters:
      threadNum - fixed thread number, means how many threads sync required, supports up to 1073741823 threads.
  • Method Details

    • barrier

      public void barrier()
    • getRoundBit

      public int getRoundBit()
    • getArrived

      public int getArrived()