mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
Fixed switch from atomics to atomic in rust
This commit is contained in:
parent
86e8480550
commit
271b688910
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue