Class WaitQueue.Standard.AbstractSignal

    • Constructor Detail

      • AbstractSignal

        public AbstractSignal()
    • Method Detail

      • await

        public WaitQueue.Signal await()
                               throws java.lang.InterruptedException
        Description copied from interface: Awaitable
        Await indefinitely, throwing any interrupt. No spurious wakeups.
        Specified by:
        await in interface Awaitable
        Throws:
        java.lang.InterruptedException - if interrupted
      • awaitUntil

        public boolean awaitUntil​(long nanoTimeDeadline)
                           throws java.lang.InterruptedException
        Description copied from interface: Awaitable
        Await until the deadline (in nanoTime), throwing any interrupt. No spurious wakeups.
        Specified by:
        awaitUntil in interface Awaitable
        Returns:
        true if we were signalled, false if the deadline elapsed
        Throws:
        java.lang.InterruptedException - if interrupted