We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c252618 commit 3e690fbCopy full SHA for 3e690fb
src/sync/mutex.rs
@@ -60,7 +60,7 @@ impl RawMutex {
60
/// Unlock this mutex.
61
#[inline]
62
pub fn unlock(&self) {
63
- let state = self.state.fetch_and(!LOCK, Ordering::AcqRel);
+ let state = self.state.fetch_and(!LOCK, Ordering::Release);
64
65
// If there are any blocked tasks, wake one of them up.
66
if state & BLOCKED != 0 {
0 commit comments