We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3f7160 + 6b3630c commit 6e17bdbCopy full SHA for 6e17bdb
src/backtrace.rs
@@ -182,7 +182,7 @@ mod capture {
182
impl Backtrace {
183
fn enabled() -> bool {
184
static ENABLED: AtomicUsize = AtomicUsize::new(0);
185
- match ENABLED.load(Ordering::SeqCst) {
+ match ENABLED.load(Ordering::Relaxed) {
186
0 => {}
187
1 => return false,
188
_ => return true,
@@ -194,7 +194,7 @@ mod capture {
194
None => false,
195
},
196
};
197
- ENABLED.store(enabled as usize + 1, Ordering::SeqCst);
+ ENABLED.store(enabled as usize + 1, Ordering::Relaxed);
198
enabled
199
}
200
0 commit comments