summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 18fc912..f13f415 100644
--- a/src/sync.rs
+++ b/src/sync.rs
@@ -123,7 +123,7 @@ impl<T> interface::Mutex for SpinLock<T> {
loop {
// Loop until acquired the lock
match self.lock
- .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed)
+ .compare_exchange(false, true, Ordering::Acquire, Ordering::Acquire)
{
Ok(_) => { break; }
_ => {}