aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-09-24 08:37:29 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-09-24 08:37:29 +0200
commit7ab495b6987384636af60a618d547350fdbd25ef (patch)
treeda115a44b3fa053f023cc2f0a12aaa3397b0ee5e /src
parent28029c8038cfb5582b56d95431e40b2c0a6289da (diff)
parent9a459f94ff533bcca8046a101309bf4863452cc1 (diff)
downloadglutin-7ab495b6987384636af60a618d547350fdbd25ef.tar.gz
glutin-7ab495b6987384636af60a618d547350fdbd25ef.zip
Merge pull request #614 from tomaka/windowproxy-sync
Fix WindowProxy not being Send and Sync on win32
Diffstat (limited to 'src')
-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 81e1c16..cb2cc6a 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) {