Lines Matching full:atomic
3 //! Atomic reference counting.
9 sync::atomic::Atomic,
13 /// Atomic reference counter.
15 /// This type is conceptually an atomic integer, but provides saturation semantics compared to
16 /// normal atomic integers. Values in the negative range when viewed as a signed integer are
41 /// Get the underlying atomic counter that backs the refcount.
47 pub fn as_atomic(&self) -> &Atomic<i32> {
49 // SAFETY: `refcount_t` is a transparent wrapper of `atomic_t`, which is an atomic 32-bit
50 // integer that is layout-wise compatible with `Atomic<i32>`. All values are valid for