Interface ISafeLock

All Known Implementing Classes:
SafeLockImpl

@Ser public interface ISafeLock
Lock creator interface for auto-closable read-only and read-write locks.
  • Method Summary

    Modifier and Type
    Method
    Description
    ro()
    Create an auto-closable read-only lock.
    rw()
    Create an auto-closable read-write lock.
  • Method Details

    • ro

      ACLock ro()
      Create an auto-closable read-only lock.
      Returns:
      an acquired lock that releases its read lock when closed
    • rw

      ACLock rw()
      Create an auto-closable read-write lock.
      Returns:
      an acquired lock that releases its write lock when closed