mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-15 09:06:14 -08:00
use notify in dirty states
This commit is contained in:
1 parent
3d3dba28e8
commit
d3ca03e20e
4 files changed
+36
-8
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user