Debian Codegraph @

third_party/rust/tokio/src/loom/std/atomic_u64_static_const_new.rs

raw
1 use super::AtomicU64;
2 use crate::loom::sync::Mutex;
3
4 pub(crate) type StaticAtomicU64 = AtomicU64;
5
6 impl AtomicU64 {
7 pub(crate) const fn new(val: u64) -> Self {
8 Self {
9 inner: Mutex::const_new(val),
10 }
11 }
12 }