Skip to content

Commit 64698d2

Browse files
committed
Merge pull request servo#17 from ozkriff/master
'spawn' -> 'std::thread::Thread::spawn'
2 parents e5f40d6 + 7986fea commit 64698d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

glue/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ extern crate libc;
1010

1111
use std::sync::Mutex;
1212

13+
use std::thread::Thread;
14+
1315
#[doc(hidden)]
1416
pub mod ffi;
1517

@@ -79,7 +81,7 @@ pub fn android_main2<F>(app: *mut (), main_function: F)
7981
app.userData = unsafe { std::mem::transmute(&context) };
8082

8183
// executing the main function in parallel
82-
spawn(move|| {
84+
let g = Thread::spawn(move|| {
8385
std::io::stdio::set_stdout(box std::io::LineBufferedWriter::new(ToLogWriter));
8486
std::io::stdio::set_stderr(box std::io::LineBufferedWriter::new(ToLogWriter));
8587
main_function()

0 commit comments

Comments
 (0)