We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a40b6d commit 50b2adeCopy full SHA for 50b2ade
library/std/src/sys_common/thread_parker/futex.rs
@@ -49,7 +49,7 @@ impl Parker {
49
// Wait for something to happen, assuming it's still set to PARKED.
50
futex_wait(&self.state, PARKED, None);
51
// Change NOTIFIED=>EMPTY and return in that case.
52
- if self.state.compare_exchange_weak(NOTIFIED, EMPTY, Acquire, Acquire).is_ok() {
+ if self.state.compare_exchange(NOTIFIED, EMPTY, Acquire, Acquire).is_ok() {
53
return;
54
} else {
55
// Spurious wake up. We loop to try again.
0 commit comments