diff options
| author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-27 15:11:59 +0200 | 
|---|---|---|
| committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-27 15:11:59 +0200 | 
| commit | 5aa72279aa20819eaf9977a8dd13dfdba93baace (patch) | |
| tree | 43bc20e96ed105132f326351a555d6ee90b36cbe | |
| parent | 4028b925d37f5e97063cac0356206f165580312e (diff) | |
| download | glutin-5aa72279aa20819eaf9977a8dd13dfdba93baace.tar.gz glutin-5aa72279aa20819eaf9977a8dd13dfdba93baace.zip  | |
Window is now NoSend
| -rw-r--r-- | src/lib.rs | 8 | 
1 files changed, 6 insertions, 2 deletions
@@ -20,7 +20,8 @@ mod events;  mod hints;  pub struct Window { -    window: winimpl::Window +    window: winimpl::Window, +    nosend: std::kinds::marker::NoSend,  }  impl Window { @@ -29,7 +30,10 @@ impl Window {          -> Result<Window, String>      {          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.  | 
