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:
irriden
2023-07-20 18:27:51 +00:00
parent 6adf9ef144
commit ad0a2f90ad

View File

@@ -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)]