Class Monitor.Cond

  • Enclosing class:
    Monitor

    public class Monitor.Cond
    extends java.lang.Object
    Conditions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void await()
      The thread that invokes this method will block until signalled.
      void signal()
      Signal (and continue) the first thread blocked in the condition.
      int waiting()
      Number of threads waiting in this Cond.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • await

        public void await()
        The thread that invokes this method will block until signalled.
      • signal

        public void signal()
        Signal (and continue) the first thread blocked in the condition.
      • waiting

        public int waiting()
        Number of threads waiting in this Cond.