aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-22 08:04:13 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-22 11:23:21 +0200
commit2ff393fe623d10f2ea89262013ba66e228cc0c94 (patch)
tree0c44986d2c2db6a27dee94a3a9c9d6a8385ec9c6 /src/win32/mod.rs
parent0d0c14e6ecc3137fd1d12c389e03e6f312f1f207 (diff)
downloadglutin-2ff393fe623d10f2ea89262013ba66e228cc0c94.tar.gz
glutin-2ff393fe623d10f2ea89262013ba66e228cc0c94.zip
Update for rustc and gl-rs
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 8be3fdb..c3da891 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -1,4 +1,4 @@
-use std::sync::atomics::AtomicBool;
+use std::sync::atomic::AtomicBool;
use std::ptr;
use Event;
@@ -75,7 +75,7 @@ impl Window {
impl Window {
/// See the docs in the crate root file.
pub fn is_closed(&self) -> bool {
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
self.is_closed.load(Relaxed)
}
@@ -170,7 +170,7 @@ impl Window {
// if one of the received events is `Closed`, setting `is_closed` to true
if events.iter().find(|e| match e { &&::Closed => true, _ => false }).is_some() {
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
self.is_closed.store(true, Relaxed);
}
@@ -185,7 +185,7 @@ impl Window {
// if the received event is `Closed`, setting `is_closed` to true
match ev {
::Closed => {
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
self.is_closed.store(true, Relaxed);
},
_ => ()
@@ -198,7 +198,7 @@ impl Window {
},
Err(_) => {
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
self.is_closed.store(true, Relaxed);
vec![]
}