mirror of
https://github.com/openharmony/third_party_rust_parking_lot.git
synced 2026-07-01 21:03:59 -04:00
Merge pull request #344 from Amanieu/fix_rwlock_ordering
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user