Update for changes in Send/Sync traits
This commit is contained in:
parent
29bf3385ad
commit
b9a6366f96
8 changed files with 41 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue