aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-09-24 08:28:09 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-09-24 08:28:09 +0200
commit9a459f94ff533bcca8046a101309bf4863452cc1 (patch)
tree2b63950e37d36ce68bb4d0157f89659fa6ec5a93 /src/api/win32
parenta448043b16127be97be6c492be5831a5965d1145 (diff)
downloadglutin-9a459f94ff533bcca8046a101309bf4863452cc1.tar.gz
glutin-9a459f94ff533bcca8046a101309bf4863452cc1.zip
Fix WindowProxy not being Send and Sync on win32
Diffstat (limited to 'src/api/win32')
-rw-r--r--src/api/win32/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs
index 0bc36a7..9d6b2da 100644
--- a/src/api/win32/mod.rs
+++ b/src/api/win32/mod.rs
@@ -84,6 +84,9 @@ pub struct WindowProxy {
hwnd: winapi::HWND,
}
+unsafe impl Send for WindowProxy {}
+unsafe impl Sync for WindowProxy {}
+
impl WindowProxy {
#[inline]
pub fn wakeup_event_loop(&self) {