aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-12-29 22:56:15 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-12-30 08:20:50 +0100
commitb9a6366f96e14e396452da443b64a10ee480fabf (patch)
tree0b23538cd302d3bd42c6784a74b0c8df882a74dc /src/android
parent29bf3385add5ee9306452fe605984838ecfaa1a5 (diff)
downloadglutin-b9a6366f96e14e396452da443b64a10ee480fabf.tar.gz
glutin-b9a6366f96e14e396452da443b64a10ee480fabf.zip
Update for changes in Send/Sync traits
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs8
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;