Skip to content

Commit b5c2e83

Browse files
committed
Use relaxed memory ordering
1 parent 11191fc commit b5c2e83

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/thread_local/guard

1 file changed

+1
-1
lines changed

library/std/src/sys/thread_local/guard/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn enable() {
2727
use crate::sys::thread_local::key::at_process_exit;
2828

2929
static REGISTERED: AtomicBool = AtomicBool::new(false);
30-
if !REGISTERED.swap(true, Ordering::AcqRel) {
30+
if !REGISTERED.swap(true, Ordering::Relaxed) {
3131
unsafe { at_process_exit(run_process) };
3232
}
3333

0 commit comments

Comments
 (0)