diff options
Diffstat (limited to 'src/osx')
-rw-r--r-- | src/osx/headless.rs | 3 | ||||
-rw-r--r-- | src/osx/mod.rs | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/osx/headless.rs b/src/osx/headless.rs index bbe3d9f..1332cf3 100644 --- a/src/osx/headless.rs +++ b/src/osx/headless.rs @@ -99,6 +99,9 @@ impl HeadlessContext { } } +unsafe impl Send for HeadlessContext {} +unsafe impl Sync for HeadlessContext {} + impl Drop for HeadlessContext { fn drop(&mut self) { unsafe { diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 7df6603..92ef641 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -73,6 +73,11 @@ impl Window { } #[cfg(feature = "window")] +unsafe impl Send for Window {} +#[cfg(feature = "window")] +unsafe impl Sync for Window {} + +#[cfg(feature = "window")] #[deriving(Clone)] pub struct WindowProxy; |