Interface Lock

All Known Subinterfaces:
InfModel, Model, OntModel
All Known Implementing Classes:
InfModelImpl, LockMRPlusSW, LockMRSW, LockMutex, LockNone, ModelCom, MonitorModel, OntModelImpl

public interface Lock
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Descriptive name for lock requests - read lock
    static final boolean
    Descriptive name for lock requests - write lock
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enterCriticalSection(boolean readLockRequested)
    Enter a critical section.
    void
    Leave a critical section.
  • Field Details

    • READ

      static final boolean READ
      Descriptive name for lock requests - read lock
      See Also:
    • WRITE

      static final boolean WRITE
      Descriptive name for lock requests - write lock
      See Also:
  • Method Details

    • enterCriticalSection

      void enterCriticalSection(boolean readLockRequested)
      Enter a critical section. The application must call leaveCriticialSection.
      Parameters:
      readLockRequested - true implies a read lock, false implies write lock.
      See Also:
    • leaveCriticalSection

      void leaveCriticalSection()
      Leave a critical section. Releases the lock form the matching enterCriticalSection
      See Also: