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/x11 | |
parent | 29bf3385add5ee9306452fe605984838ecfaa1a5 (diff) | |
download | glutin-b9a6366f96e14e396452da443b64a10ee480fabf.tar.gz glutin-b9a6366f96e14e396452da443b64a10ee480fabf.zip |
Update for changes in Send/Sync traits
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/headless.rs | 3 | ||||
-rw-r--r-- | src/x11/window/mod.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs index 95f5233..d6f1023 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -62,3 +62,6 @@ impl Drop for HeadlessContext { unsafe { ffi::OSMesaDestroyContext(self.context) } } } + +unsafe impl Send for HeadlessContext {} +unsafe impl Sync for HeadlessContext {} diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 422b5b6..0a8c3d5 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -34,6 +34,9 @@ struct XWindow { im: ffi::XIM, } +unsafe impl Send for Window {} +unsafe impl Sync for Window {} + impl Drop for XWindow { fn drop(&mut self) { unsafe { |