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.
When cfg(parallel_compiler)
is not set, the lock is instead a wrapper around RefCell
.
Re-exports§
pub use maybe_sync::*;
Modules§
- no_sync 🔒