diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-24 08:28:09 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-24 08:28:09 +0200 |
commit | 9a459f94ff533bcca8046a101309bf4863452cc1 (patch) | |
tree | 2b63950e37d36ce68bb4d0157f89659fa6ec5a93 /src | |
parent | a448043b16127be97be6c492be5831a5965d1145 (diff) | |
download | glutin-9a459f94ff533bcca8046a101309bf4863452cc1.tar.gz glutin-9a459f94ff533bcca8046a101309bf4863452cc1.zip |
Fix WindowProxy not being Send and Sync on win32
Diffstat (limited to 'src')
-rw-r--r-- | src/api/win32/mod.rs | 3 |
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) { |