Revert "Bug fixes" (#148)

Revert "Bug fixes (#145)"

This reverts commit 8acdfc8d1c.
This commit is contained in:
Thomas Schönauer
2022-11-05 09:15:52 +00:00
committed by GitHub
parent 8acdfc8d1c
commit b6e50a38af
17 changed files with 155 additions and 276 deletions

View File

@@ -1,7 +1,10 @@
use lazy_static::lazy_static;
use std::sync::atomic::{AtomicBool, Ordering};
/// A global variable telling whether the application has been interrupted.
static INTERRUPTED: AtomicBool = AtomicBool::new(false);
lazy_static! {
/// A global variable telling whether the application has been interrupted.
static ref INTERRUPTED: AtomicBool = AtomicBool::new(false);
}
/// Tells whether the program has been interrupted
pub fn interrupted() -> bool {