Module erg_common::shared

source ·

Structs

  • Thread-local objects that can be shared among threads. The initial value can be shared globally, but the changes are not reflected in other threads. Otherwise, this behaves as a RefCell.

Type Aliases

  • 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 exclusive write access of a lock when dropped.