Sha256: 2d98d1608058f3248d79b1e9c96118627fef6362ccfefa77047be2e5617d7571
Contents?: true
Size: 646 Bytes
Versions: 22
Compression:
Stored size: 646 Bytes
Contents
//! Implementation of an atomic u64 cell. On 64 bit platforms, this is a //! re-export of `AtomicU64`. On 32 bit platforms, this is implemented using a //! `Mutex`. // `AtomicU64` can only be used on targets with `target_has_atomic` is 64 or greater. // Once `cfg_target_has_atomic` feature is stable, we can replace it with // `#[cfg(target_has_atomic = "64")]`. // Refs: https://github.com/rust-lang/rust/tree/master/src/librustc_target cfg_has_atomic_u64! { #[path = "atomic_u64_native.rs"] mod imp; } cfg_not_has_atomic_u64! { #[path = "atomic_u64_as_mutex.rs"] mod imp; } pub(crate) use imp::{AtomicU64, StaticAtomicU64};
Version data entries
22 entries across 22 versions & 1 rubygems