From 9a459f94ff533bcca8046a101309bf4863452cc1 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 24 Sep 2015 08:28:09 +0200 Subject: Fix WindowProxy not being Send and Sync on win32 --- src/api/win32/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/api/win32') 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) { -- cgit v1.2.3