summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <c@localhost>2022-08-26 18:24:28 -0700
committerChristian Cunningham <c@localhost>2022-08-26 18:24:28 -0700
commite05010f85baa4c3fd989dd623534051b24a15971 (patch)
tree78471d3ae200412705b2a9d872c14d028c1c6cde /src
parent92744af6276169348171b256b8457dc42115847e (diff)
Atomic ordering
Diffstat (limited to 'src')
-rw-r--r--src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync.rs b/src/sync.rs
index 46a5d25..64d3326 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(true) => { break; }
+ Ok(false) => { break; }
_ => {}
}
}