diff options
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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<Window, CreationError> { 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; |