refactor: reorganize source and tests
This commit is contained in:
1 parent
15d76c18a0
commit
c6205a337c
139 files changed
+5532
-5548
No files matched your search
@@ -0,0 +1,16 @@
|
||||
// application feedback shared by background work and every frontend.
|
||||
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
pub mod errors;
|
||||
pub mod progress;
|
||||
|
||||
static REDRAW_REQUESTED: AtomicBool = AtomicBool::new(true);
|
||||
|
||||
pub fn request_redraw() {
|
||||
REDRAW_REQUESTED.store(true, Ordering::Release);
|
||||
}
|
||||
|
||||
pub(crate) fn take_redraw_request() -> bool {
|
||||
REDRAW_REQUESTED.swap(false, Ordering::AcqRel)
|
||||
}
|
||||
Reference in new issue
Block a user