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§