]>
git.proxmox.com Git - rustc.git/blob - vendor/crossbeam-utils/src/atomic/mod.rs
3 //! * [`AtomicCell`], a thread-safe mutable memory location.
4 //! * [`AtomicConsume`], for reading from primitive atomic types with "consume" ordering.
6 #[cfg(not(crossbeam_loom))]
9 #[cfg(not(crossbeam_loom))]
11 // Use "wide" sequence lock if the pointer width <= 32 for preventing its counter against wrap
14 // We are ignoring too wide architectures (pointer width >= 256), since such a system will not
15 // appear in a conceivable future.
17 // In narrow architectures (pointer width <= 16), the counter is still <= 32-bit and may be
18 // vulnerable to wrap around. But it's mostly okay, since in such a primitive hardware, the
19 // counter will not be increased that fast.
20 if #[cfg(any(target_pointer_width = "64", target_pointer_width = "128"))] {
23 #[path = "seq_lock_wide.rs"]
31 pub use self::atomic_cell
::AtomicCell
;
32 pub use self::consume
::AtomicConsume
;