mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Fixed switch from atomics to atomic in rust
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use Event;
|
||||
use std::sync::atomics::AtomicBool;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
use WindowBuilder;
|
||||
@@ -181,7 +181,7 @@ impl Window {
|
||||
}
|
||||
|
||||
pub fn is_closed(&self) -> bool {
|
||||
use std::sync::atomics::Relaxed;
|
||||
use std::sync::atomic::Relaxed;
|
||||
self.is_closed.load(Relaxed)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user