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 de87ae7 commit d147f78Copy full SHA for d147f78
library/std/src/sys/wasm/condvar_atomics.rs
@@ -52,8 +52,9 @@ impl Condvar {
52
53
#[inline]
54
pub unsafe fn notify_all(&self) {
55
+ self.cnt.fetch_add(1, SeqCst);
56
+ // SAFETY: memory_atomic_notify()is always valid
57
unsafe {
- self.cnt.fetch_add(1, SeqCst);
58
wasm32::memory_atomic_notify(self.ptr(), u32::MAX); // -1 == "wake everyone"
59
}
60
0 commit comments