diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -49,7 +49,9 @@ extern crate bitflags; pub mod macros; pub mod ansi; +pub mod cli; pub mod config; +pub mod display; pub mod event; pub mod event_loop; pub mod grid; @@ -63,9 +65,6 @@ pub mod tty; pub mod util; pub mod window; -use std::sync::Arc; -use std::sync::atomic::{AtomicBool, Ordering}; - pub use grid::Grid; pub use term::Term; @@ -80,21 +79,3 @@ pub mod gl { #![allow(non_upper_case_globals)] include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs")); } - -#[derive(Clone)] -pub struct Flag(pub Arc<AtomicBool>); -impl Flag { - pub fn new(initial_value: bool) -> Flag { - Flag(Arc::new(AtomicBool::new(initial_value))) - } - - #[inline] - pub fn get(&self) -> bool { - self.0.load(Ordering::Acquire) - } - - #[inline] - pub fn set(&self, value: bool) { - self.0.store(value, Ordering::Release) - } -} |