diff options
Diffstat (limited to 'src/atomic/mod.rs')
-rw-r--r-- | src/atomic/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atomic/mod.rs b/src/atomic/mod.rs index fc713fc..3896785 100644 --- a/src/atomic/mod.rs +++ b/src/atomic/mod.rs @@ -24,9 +24,14 @@ cfg_if::cfg_if! { } #[cfg(not(crossbeam_no_atomic_cas))] +// We cannot provide AtomicCell under cfg(crossbeam_loom) because loom's atomic +// types have a different in-memory representation than the underlying type. +// TODO: The latest loom supports fences, so fallback using seqlock may be available. +#[cfg(not(crossbeam_loom))] mod atomic_cell; mod consume; #[cfg(not(crossbeam_no_atomic_cas))] +#[cfg(not(crossbeam_loom))] pub use self::atomic_cell::AtomicCell; pub use self::consume::AtomicConsume; |