Module egui::mutex[][src]

Helper module that wraps some Mutex types with different implementations.

When the single_threaded feature is on the mutexes will panic when locked from different threads.

Structs

Mutex

Provides interior mutability. Only thread-safe if the multi_threaded feature is enabled.

MutexGuard

A wrapper type for a mutably borrowed value from an AtomicRefCell<T>.

RwLock

Provides interior mutability. Only thread-safe if the multi_threaded feature is enabled.

RwLockReadGuard

A wrapper type for an immutably borrowed value from an AtomicRefCell<T>.

RwLockWriteGuard

A wrapper type for a mutably borrowed value from an AtomicRefCell<T>.