Fix an intrinsic invocation on threaded wasm
This looks like it was forgotten to get updated in #74482 and wasm with threads isn't built on CI so we didn't catch this by accident.
This commit is contained in:
parent
12f0dba618
commit
010265a439
@ -138,7 +138,7 @@ impl ReentrantMutex {
|
||||
self.owner.swap(0, SeqCst);
|
||||
// SAFETY: the caller must gurantee that `self.ptr()` is valid i32.
|
||||
unsafe {
|
||||
wasm32::atomic_notify(self.ptr() as *mut i32, 1);
|
||||
wasm32::memory_atomic_notify(self.ptr() as *mut i32, 1);
|
||||
} // wake up one waiter, if any
|
||||
}
|
||||
ref mut n => *n -= 1,
|
||||
|
Loading…
Reference in New Issue
Block a user