Skip to content

Commit

Permalink
Merge pull request #344 from Amanieu/fix_rwlock_ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu authored May 31, 2022
2 parents 6f6e021 + d26c284 commit 3fe7233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raw_rwlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,8 +988,8 @@ impl RawRwLock {
if let Err(x) = self.state.compare_exchange_weak(
state,
state | WRITER_PARKED_BIT,
Ordering::Relaxed,
Ordering::Relaxed,
Ordering::Acquire,
Ordering::Acquire,
) {
state = x;
continue;
Expand Down

0 comments on commit 3fe7233

Please sign in to comment.