summaryrefslogtreecommitdiff
path: root/src/sync.rs
diff options
context:
space:
mode:
authorChristian Cunningham <c@localhost>2022-08-26 18:24:06 -0700
committerChristian Cunningham <c@localhost>2022-08-26 18:24:06 -0700
commit92744af6276169348171b256b8457dc42115847e (patch)
tree895bf93da38cdb8334039839be13729e07fe3120 /src/sync.rs
parent44b2a2741efe1ac0503f71e53b4f13359f8e7a9a (diff)
Atomic ordering
Diffstat (limited to 'src/sync.rs')
-rw-r--r--src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.rs b/src/sync.rs
index f13f415..46a5d25 100644
--- a/src/sync.rs
+++ b/src/sync.rs
@@ -125,7 +125,7 @@ impl<T> interface::Mutex for SpinLock<T> {
match self.lock
.compare_exchange(false, true, Ordering::Acquire, Ordering::Acquire)
{
- Ok(_) => { break; }
+ Ok(true) => { break; }
_ => {}
}
}