Module no_std_compat2::sync

source ·
Available on non-crate feature std only.

Modules

Structs

  • ExclusiveExperimental
    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.
  • A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
  • MutexGuardalloc and compat_sync
    A generic guard that will protect some data access and uses either a ticket lock or a normal spin mutex.
  • RwLockReadGuardalloc and compat_sync
    A guard that provides immutable data access.
  • 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>>.

Type Definitions

  • Mutexalloc and compat_sync and mutex
    A primitive that synchronizes the execution of multiple threads. See mutex::Mutex for documentation.
  • Oncealloc and compat_sync and once
    A primitive that provides lazy one-time initialization. See once::Once for documentation.
  • RwLockalloc and compat_sync and rwlock
    A lock that provides data access to either one writer or many readers. See rwlock::RwLock for documentation.
  • RwLockWriteGuardalloc and compat_sync and rwlock
    A guard that provides mutable data access. See rwlock::RwLockWriteGuard for documentation.