Package nxt.util

Interface ReadWriteUpdateLock.Lock

Enclosing class:
ReadWriteUpdateLock

public static interface ReadWriteUpdateLock.Lock
Lock interface
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the thread holds the lock
    void
    Obtain the lock
    void
    Release the lock
  • Method Details

    • lock

      void lock()
      Obtain the lock
    • unlock

      void unlock()
      Release the lock
    • hasLock

      boolean hasLock()
      Check if the thread holds the lock
      Returns:
      TRUE if the thread holds the lock