fix ordering of device.valid.store in device_destroy

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2024-09-09 15:03:19 +02:00
1 parent eb47449eb9
commit 480abae331
1 file changed
+1 -1
+1 -1
View File
@@ -2293,7 +2293,7 @@ impl Global {
// check for empty queues and a DeviceLostClosure. At that time,
// the DeviceLostClosure will be called with "destroyed" as the
// reason.
device.valid.store(false, Ordering::Relaxed);
device.valid.store(false, Ordering::Release);
}
}