diff options
Diffstat (limited to '')
-rw-r--r-- | third_party/rust/bytes/src/loom.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/rust/bytes/src/loom.rs b/third_party/rust/bytes/src/loom.rs new file mode 100644 index 0000000000..80947acecc --- /dev/null +++ b/third_party/rust/bytes/src/loom.rs @@ -0,0 +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; |