From 469d0eafd1704d5e9a172adfc673708fc76923e9 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 9 Jan 2015 23:06:14 +0100 Subject: Update for rust alpha 1.0 --- examples/multiwindow.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/multiwindow.rs') diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index fc01ef0..96b5842 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -20,15 +20,15 @@ fn main() { let window2 = glutin::Window::new().unwrap(); let window3 = glutin::Window::new().unwrap(); - let t1 = Thread::spawn(move || { + let t1 = Thread::scoped(move || { run(window1, (0.0, 1.0, 0.0, 1.0)); }); - let t2 = Thread::spawn(move || { + let t2 = Thread::scoped(move || { run(window2, (0.0, 0.0, 1.0, 1.0)); }); - let t3 = Thread::spawn(move || { + let t3 = Thread::scoped(move || { run(window3, (1.0, 0.0, 0.0, 1.0)); }); -- cgit v1.2.3