Class PhaserUtils

java.lang.Object
edu.wustl.cse231s.concurrent.PhaserUtils

public class PhaserUtils
extends java.lang.Object
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Summary

    Constructors 
    Constructor Description
    PhaserUtils()  
  • Method Summary

    Modifier and Type Method Description
    static int awaitAdvanceForPhase​(java.util.concurrent.Phaser phaser, int phase)  
    static int awaitAdvanceForPhase​(java.util.concurrent.Phaser phaser, int phase, java.lang.Runnable runnable)  
    static int awaitAdvanceInterruptiblyForPhase​(java.util.concurrent.Phaser phaser, int phase)  
    static int awaitAdvanceInterruptiblyForPhase​(java.util.concurrent.Phaser phaser, int phase, Interruptible interruptible)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • awaitAdvanceForPhase

      public static int awaitAdvanceForPhase​(java.util.concurrent.Phaser phaser, int phase)
    • awaitAdvanceForPhase

      public static int awaitAdvanceForPhase​(java.util.concurrent.Phaser phaser, int phase, java.lang.Runnable runnable)
    • awaitAdvanceInterruptiblyForPhase

      public static int awaitAdvanceInterruptiblyForPhase​(java.util.concurrent.Phaser phaser, int phase) throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • awaitAdvanceInterruptiblyForPhase

      public static int awaitAdvanceInterruptiblyForPhase​(java.util.concurrent.Phaser phaser, int phase, Interruptible interruptible) throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException