Module lock_api::rwlock

source ·

Structs

  • An RAII read lock guard returned by RwLockReadGuard::map, which can point to a subfield of the protected data.
  • An RAII write lock guard returned by RwLockWriteGuard::map, which can point to a subfield of the protected data.
  • A reader-writer lock
  • RAII structure used to release the shared read access of a lock when dropped.
  • RAII structure used to release the upgradable read access of a lock when dropped.
  • RAII structure used to release the exclusive write access of a lock when dropped.

Traits

  • Basic operations for a reader-writer lock.
  • Additional methods for RwLocks which support atomically downgrading an exclusive lock to a shared lock.
  • Additional methods for RwLocks which support fair unlocking.
  • Additional methods for RwLocks which support recursive read locks.
  • Additional methods for RwLocks which support recursive read locks and timeouts.
  • Additional methods for RwLocks which support locking with timeouts.
  • Additional methods for RwLocks which support atomically upgrading a shared lock to an exclusive lock.
  • Additional methods for RwLocks which support upgradable locks and lock downgrading.
  • Additional methods for RwLocks which support upgradable locks and fair unlocking.
  • Additional methods for RwLocks which support upgradable locks and locking with timeouts.