garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /ports/tokio-1.53.1/src/loom/std/atomic_u64_static_const_new.rs

raw

use super::AtomicU64;
use crate::loom::sync::Mutex;

pub(crate) type StaticAtomicU64 = AtomicU64;

impl AtomicU64 {
    pub(crate) const fn new(val: u64) -> Self {
        Self {
            inner: Mutex::const_new(val),
        }
    }
}