persist in using SeqCst
We probably don't need to, but let's keep the change minimal...
This commit is contained in:
parent
f7cc4c93d6
commit
ee6b6d69dd
@ -53,7 +53,7 @@ impl HokmaLock {
|
||||
// We are only interested in error results
|
||||
if let Err(previous) = self
|
||||
.lock
|
||||
.compare_exchange(1, 1, Ordering::Acquire, Ordering::Relaxed)
|
||||
.compare_exchange(1, 1, Ordering::SeqCst, Ordering::SeqCst)
|
||||
{
|
||||
// If we failed, previous cannot be 1
|
||||
return WhenTheHokmaSuppression {
|
||||
|
Loading…
Reference in New Issue
Block a user