Class PsyLock

    • Constructor Detail

      • PsyLock

        public PsyLock()
    • Method Detail

      • lock

        public void lock()
        Acquires the lock.
      • unlock

        public void unlock()
        Releases the lock.
      • isHeldByCurrentThread

        public boolean isHeldByCurrentThread()
        Queries if this lock is held by the current thread.
        Returns:
        true if current context holds this lock and false otherwise.
      • psyCondition

        public PsyCondition psyCondition()
        Returns a Ψ-condition for use with this lock.
        Returns:
        a Ψ-condition object.