persist in using SeqCst

We probably don't need to, but let's keep the change minimal...
This commit is contained in:
Gary Pennington 2023-06-14 17:03:56 +01:00
parent f7cc4c93d6
commit ee6b6d69dd

View File

@ -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 {