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§
- Cell
Non- loom - A mutable memory location.
- Const
Ptr Non- loom - An immutable raw pointer to an
UnsafeCellthat may be checked when Loom model checking is enabled. - MutPtr
Non- loom - A mutable raw pointer to an
UnsafeCellthat may be checked when Loom model checking is enabled. - Unsafe
Cell Non- loom - A variant of
core::cell::UnsafeCellthat may be checked when Loom model checking is enabled.