Module mycelium_util::sync::cell
source · Expand description
A variant of core::cell::UnsafeCell specialized for use in
implementations of synchronization primitives.
When the cfg(loom) flag is enabled, the UnsafeCell and Cell types
in this module are re-exports of loom’s checked
UnsafeCell and [checked Cell][loom-cell] types. When
Loom is not enabled, UnsafeCell is a wrapper around
core::cell::UnsafeCell that implements the loom::cell::UnsafeCell
interface, and Cell is a re-export of core::cell::Cell.
Structs§
- CellNon-
loomA mutable memory location. - ConstPtrNon-
loomAn immutable raw pointer to anUnsafeCellthat may be checked when Loom model checking is enabled. - MutPtrNon-
loomA mutable raw pointer to anUnsafeCellthat may be checked when Loom model checking is enabled. - UnsafeCellNon-
loomA variant ofcore::cell::UnsafeCellthat may be checked when Loom model checking is enabled.