Crate wgpu_sync

Crate wgpu_sync 

Source
Expand description

Provides Mutex and RwLock types with an appropriate implementation.

Modules§

atomic
Provides items for atomic operations.
mutex 🔒
rwlock 🔒

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Condvarstd
A Condition Variable
Lazy
A value which is initialized on the first access.
OnceBool
A thread-safe cell which can be written to only once.
OnceBox
A thread-safe cell which can be written to only once.
OnceCell
A thread-safe cell which can be written to only once.
OnceNonZeroUsize
A thread-safe cell which can be written to only once.
OnceRef
A thread-safe cell which can be written to only once.
RawMutex
Raw implementation for a [lock_api::Mutex].
RawRwLock
Raw implementation for a [lock_api::RwLock].
Weak
Weak is a version of Arc that holds a non-owning reference to the managed allocation.

Type Aliases§

CondvarMutexstd
A mutual exclusion primitive useful for protecting shared data
MappedMutexGuard
A MappedMutexGuard using RawMutex for its backing implementation.
Mutex
A Mutex using RawMutex for its backing implementation.
MutexGuard
A MutexGuard using RawMutex for its backing implementation.
RwLock
A RwLock using RawRwLock for its backing implementation.
RwLockReadGuard
A RwLockReadGuard using RawRwLock for its backing implementation.
RwLockUpgradableReadGuard
A RwLockUpgradableReadGuard using RawRwLock for its backing implementation.
RwLockWriteGuard
A RwLockWriteGuard using RawRwLock for its backing implementation.