Fixed switch from atomics to atomic in rust

This commit is contained in:
David Partouche 2014-10-23 12:28:57 +02:00
parent 86e8480550
commit 271b688910

View file

@ -1,5 +1,5 @@
use Event; use Event;
use std::sync::atomics::AtomicBool; use std::sync::atomic::AtomicBool;
#[cfg(feature = "window")] #[cfg(feature = "window")]
use WindowBuilder; use WindowBuilder;
@ -181,7 +181,7 @@ impl Window {
} }
pub fn is_closed(&self) -> bool { pub fn is_closed(&self) -> bool {
use std::sync::atomics::Relaxed; use std::sync::atomic::Relaxed;
self.is_closed.load(Relaxed) self.is_closed.load(Relaxed)
} }