use notify in dirty states

This commit is contained in:
Luna Yao committed 2026-04-06 11:54:01 +02:00
1 parent 3d3dba28e8
commit d3ca03e20e
4 files changed
+36 -8

No files matched your search

+7 -1
View File
@@ -267,7 +267,7 @@ where
}
}
#[derive(Debug, Default)]
#[derive(Debug)]
pub(super) struct DirtyFlag(AtomicBool);
impl DirtyFlag {
@@ -283,3 +283,9 @@ impl DirtyFlag {
self.0.swap(false, Ordering::Acquire)
}
}
impl Default for DirtyFlag {
fn default() -> Self {
Self::new(true)
}
}