diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-29 22:56:15 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-30 08:20:50 +0100 |
commit | b9a6366f96e14e396452da443b64a10ee480fabf (patch) | |
tree | 0b23538cd302d3bd42c6784a74b0c8df882a74dc /src/osx | |
parent | 29bf3385add5ee9306452fe605984838ecfaa1a5 (diff) | |
download | glutin-b9a6366f96e14e396452da443b64a10ee480fabf.tar.gz glutin-b9a6366f96e14e396452da443b64a10ee480fabf.zip |
Update for changes in Send/Sync traits
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; |