Window is now NoSend

This commit is contained in:
Pierre Krieger 2014-07-27 15:11:59 +02:00
parent 4028b925d3
commit 5aa72279aa

View file

@ -20,7 +20,8 @@ mod events;
mod hints; mod hints;
pub struct Window { pub struct Window {
window: winimpl::Window window: winimpl::Window,
nosend: std::kinds::marker::NoSend,
} }
impl Window { impl Window {
@ -29,7 +30,10 @@ impl Window {
-> Result<Window, String> -> Result<Window, String>
{ {
let win = try!(winimpl::Window::new(dimensions, title, hints)); let win = try!(winimpl::Window::new(dimensions, title, hints));
Ok(Window{window: win}) Ok(Window{
window: win,
nosend: std::kinds::marker::NoSend,
})
} }
/// Returns true if the window has been closed by the user. /// Returns true if the window has been closed by the user.