Update for changes in Send/Sync traits

This commit is contained in:
Pierre Krieger 2014-12-29 22:56:15 +01:00
parent 29bf3385ad
commit b9a6366f96
8 changed files with 41 additions and 4 deletions

View file

@ -62,3 +62,6 @@ impl Drop for HeadlessContext {
unsafe { ffi::OSMesaDestroyContext(self.context) }
}
}
unsafe impl Send for HeadlessContext {}
unsafe impl Sync for HeadlessContext {}

View file

@ -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 {