Interface MessagePassingQueue.ExitCondition

  • Enclosing interface:
    MessagePassingQueue<T>

    public static interface MessagePassingQueue.ExitCondition
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean keepRunning()
      This method should be implemented such that the flag read or determination cannot be hoisted out of a loop which notmally means a volatile load, but with JDK9 VarHandles may mean getOpaque.
    • Method Detail

      • keepRunning

        boolean keepRunning()
        This method should be implemented such that the flag read or determination cannot be hoisted out of a loop which notmally means a volatile load, but with JDK9 VarHandles may mean getOpaque.
        Returns:
        true as long as we should keep running