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 12f0dba commit 010265aCopy full SHA for 010265a
library/std/src/sys/wasm/mutex_atomics.rs
@@ -138,7 +138,7 @@ impl ReentrantMutex {
138
self.owner.swap(0, SeqCst);
139
// SAFETY: the caller must gurantee that `self.ptr()` is valid i32.
140
unsafe {
141
- wasm32::atomic_notify(self.ptr() as *mut i32, 1);
+ wasm32::memory_atomic_notify(self.ptr() as *mut i32, 1);
142
} // wake up one waiter, if any
143
}
144
ref mut n => *n -= 1,
0 commit comments