Module atomic

Source
Expand description

Atomic Refcell implmentation.

Atomic Refcells are from the atomic_refcell crate.

Modules§

borrow
This module contains types that can be used to implement atomic borrowing.

Structs§

AtomicCell
A mutable memory location with dynamically checked borrow rules This type behaves mostly like core::cell::RefCell. The main difference is that this type uses atomic operations for borrowing. Thus allowing to use it in multi-threaded environment.
Ref
Wrapper for a borrowed AtomicCell that will released lock on drop.
RefMut
Wrapper for mutably borrowed AtomicCell that will released lock on drop.