rmcl 0.4.0

A fully featured Minecraft TUI launcher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
}