We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b433a8c commit bb70b9eCopy full SHA for bb70b9e
src/imp_cs.rs
@@ -1,7 +1,7 @@
1
use core::panic::{RefUnwindSafe, UnwindSafe};
2
3
-use portable_atomic::{AtomicBool, Ordering};
4
use critical_section::{CriticalSection, Mutex};
+use portable_atomic::{AtomicBool, Ordering};
5
6
use crate::unsync;
7
src/race.rs
@@ -19,10 +19,10 @@
19
//! `Acquire` and `Release` have very little performance overhead on most
20
//! architectures versus `Relaxed`.
21
22
-#[cfg(feature = "critical-section")]
23
-use portable_atomic as atomic;
24
#[cfg(not(feature = "critical-section"))]
25
use core::sync::atomic;
+#[cfg(feature = "critical-section")]
+use portable_atomic as atomic;
26
27
use atomic::{AtomicPtr, AtomicUsize, Ordering};
28
use core::cell::UnsafeCell;
0 commit comments