From b9a6366f96e14e396452da443b64a10ee480fabf Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 29 Dec 2014 22:56:15 +0100 Subject: Update for changes in Send/Sync traits --- src/android/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/android') diff --git a/src/android/mod.rs b/src/android/mod.rs index 7279f99..111d4b4 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -60,6 +60,11 @@ impl HeadlessContext { } } +#[cfg(feature = "headless")] +unsafe impl Send for HeadlessContext {} +#[cfg(feature = "headless")] +unsafe impl Sync for HeadlessContext {} + impl Window { pub fn new(builder: WindowBuilder) -> Result { use std::{mem, ptr}; @@ -275,6 +280,9 @@ impl Window { } } +unsafe impl Send for Window {} +unsafe impl Sync for Window {} + #[cfg(feature = "window")] #[deriving(Clone)] pub struct WindowProxy; -- cgit v1.2.3