aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multiwindow.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-10 08:33:27 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-10 08:33:27 +0100
commitf72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa (patch)
treeeb5d69fa2deb0326a4dc43bddb1f4ff6be8c4051 /examples/multiwindow.rs
parent9d7dbf7eb039d5614976a184082163bc97a319c6 (diff)
parent469d0eafd1704d5e9a172adfc673708fc76923e9 (diff)
downloadglutin-f72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa.tar.gz
glutin-f72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa.zip
Merge pull request #190 from tomaka/update-rustc
Update for rust alpha 1.0
Diffstat (limited to 'examples/multiwindow.rs')
-rw-r--r--examples/multiwindow.rs6
1 files changed, 3 insertions, 3 deletions
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));
});