Change loom tests to use cfg(loom) internally (#314)

This commit is contained in:
Sean McArthur
2019-11-13 14:55:25 -08:00
committed by GitHub
parent b32f6298e2
commit 9a10addb44
6 changed files with 94 additions and 73 deletions
+4
View File
@@ -1,5 +1,9 @@
#[cfg(not(all(test, loom)))]
pub(crate) mod sync {
pub(crate) mod atomic {
pub(crate) use core::sync::atomic::{fence, AtomicPtr, AtomicUsize, Ordering};
}
}
#[cfg(all(test, loom))]
pub(crate) use ::loom::sync;