mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Update for rustc
This commit is contained in:
@@ -6,6 +6,8 @@ extern crate android_glue;
|
||||
|
||||
extern crate glutin;
|
||||
|
||||
use std::thread::Thread;
|
||||
|
||||
mod support;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
@@ -20,17 +22,21 @@ fn main() {
|
||||
let window2 = glutin::Window::new().unwrap();
|
||||
let window3 = glutin::Window::new().unwrap();
|
||||
|
||||
spawn(move || {
|
||||
let t1 = Thread::spawn(move || {
|
||||
run(window1, (0.0, 1.0, 0.0, 1.0));
|
||||
});
|
||||
|
||||
spawn(move || {
|
||||
let t2 = Thread::spawn(move || {
|
||||
run(window2, (0.0, 0.0, 1.0, 1.0));
|
||||
});
|
||||
|
||||
spawn(move || {
|
||||
let t3 = Thread::spawn(move || {
|
||||
run(window3, (1.0, 0.0, 0.0, 1.0));
|
||||
});
|
||||
|
||||
t1.join();
|
||||
t2.join();
|
||||
t3.join();
|
||||
}
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
|
||||
Reference in New Issue
Block a user