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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue