Interface MessagePassingQueue.ExitCondition

Enclosing interface:
MessagePassingQueue<T>

public static interface MessagePassingQueue.ExitCondition
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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 Details

    • 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