Interface ToolkitLock

    • Field Detail

      • DEBUG

        static final boolean DEBUG
      • TRACE_LOCK

        static final boolean TRACE_LOCK
    • Method Detail

      • lock

        void lock()
        Blocking until the lock is acquired by this Thread or a timeout is reached.

        Timeout is implementation specific, if used at all.

        Throws:
        RuntimeException - in case of a timeout
      • unlock

        void unlock()
        Release the lock.
        Throws:
        RuntimeException - in case the lock is not acquired by this thread.
      • dispose

        void dispose()
        Dispose this instance.

        Shall be called when instance is no more required.

        This allows implementations sharing a lock via resources to decrease the reference counter.