mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
utils/id: Use a Relaxed atomic op
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ impl IdCounter {
|
||||
}
|
||||
|
||||
pub fn next(&self) -> u32 {
|
||||
self.value.fetch_add(1, Ordering::SeqCst)
|
||||
self.value.fetch_add(1, Ordering::Relaxed)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user