Expand description
This module implements a lock which only uses synchronization if might_be_dyn_thread_safe is true.
It implements DynSend and DynSync instead of the typical Send and Sync traits.
Re-exportsยง
use std::fmt;๐use std::hint;๐use std::cell::Cell;๐use std::cell::UnsafeCell;๐use std::marker::PhantomData;๐use std::mem::ManuallyDrop;๐use std::ops::Deref;๐use std::ops::DerefMut;๐use parking_lot::RawMutex;๐use parking_lot::lock_api::RawMutex as _;๐use crate::sync::DynSend;๐use crate::sync::DynSync;๐use crate::sync::mode;๐
Structsยง
- Lock
- A lock which only uses synchronization if
might_be_dyn_thread_safeis true. It implementsDynSendandDynSyncinstead of the typicalSendandSync. - Lock
Guard - A guard holding mutable access to a
Lockwhich is in a locked state.
Enumsยง
Constantsยง
- LOCKED ๐
- The value representing a locked state for the
Cell.
Unionsยง
- Mode
Union ๐