Module tokio::loom::std::sync

source ·

Modules§

Structs§

  • Arc 🔒
    A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
  • Condvar 🔒
    A Condition Variable
  • MutexGuard 🔒
    An RAII implementation of a “scoped lock” of a mutex. 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.
  • A type indicating whether a timed wait on a condition variable returned due to a time out or not.
  • Weak 🔒
    Weak is a version of Arc that holds a non-owning reference to the managed allocation. The allocation is accessed by calling upgrade on the Weak pointer, which returns an Option<Arc<T>>.