A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically
Reference Counted’.
A barrier enables multiple threads to synchronize the beginning
of some computation.
A Condition Variable
A value which is initialized on the first access.
A mutual exclusion primitive useful for protecting shared data
An RAII implementation of a “scoped lock” of a mutex. When this structure is
dropped (falls out of scope), the lock will be unlocked.
A low-level synchronization primitive for one-time global execution.
A synchronization primitive which can nominally be written to only once.
A type of error which can be returned whenever a lock is acquired.
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.
A type indicating whether a timed wait on a condition variable returned
due to a time out or not.
Weak
is a version of
Arc
that holds a non-owning reference to the
managed allocation.
Exclusive
provides only mutable access, also referred to as exclusive
access to the underlying value. It provides no immutable, or shared
access to the underlying value.
An RAII mutex guard returned by MutexGuard::map
, which can point to a
subfield of the protected data. When this structure is dropped (falls out
of scope), the lock will be unlocked.
RAII structure used to release the shared read access of a lock when
dropped, which can point to a subfield of the protected data.
RAII structure used to release the exclusive write access of a lock when
dropped, which can point to a subfield of the protected data.
A re-entrant mutual exclusion lock
An RAII implementation of a “scoped lock” of a re-entrant lock. When this
structure is dropped (falls out of scope), the lock will be unlocked.