mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-18 07:44:21 +01:00
broker: make done_being_busy ordering::release, not ordering::relaxed
we want to make sure that all operations before this call have completed before setting BUSY back to false
This commit is contained in:
@@ -20,7 +20,7 @@ pub fn try_to_get_busy() -> std::result::Result<bool, bool> {
|
|||||||
|
|
||||||
// set BUSY back to false
|
// set BUSY back to false
|
||||||
pub fn done_being_busy() {
|
pub fn done_being_busy() {
|
||||||
BUSY.store(false, Ordering::Relaxed);
|
BUSY.store(false, Ordering::Release);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user