Rollup merge of #78988 - alexcrichton:one-more-intrinsic, r=sfackler
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:
commit
d57212d49e
@ -138,7 +138,7 @@ pub unsafe fn unlock(&self) {
|
||||
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