auto merge of #7265 : brson/rust/io-upstream, r=brson
r? @graydon, @nikomatsakis, @pcwalton, or @catamorphism
Sorry this is so huge, but it's been accumulating for about a month. There's lots of stuff here, mostly oriented toward enabling multithreaded scheduling and improving compatibility between the old and new runtimes. Adds task pinning so that we can create the 'platform thread' in servo.
[Here](e1555f9b56/src/libstd/rt/mod.rs (L201)) is the current runtime setup code.
About half of this has already been reviewed.
This commit is contained in:
commit
41dcec2fe1
52 changed files with 5652 additions and 2095 deletions
|
|
@ -23,7 +23,6 @@ mod rustrt {
|
|||
pub fn rust_get_sched_id() -> libc::intptr_t;
|
||||
pub fn rust_get_argc() -> libc::c_int;
|
||||
pub fn get_task_id() -> libc::intptr_t;
|
||||
pub fn rust_sched_threads();
|
||||
pub fn rust_get_task();
|
||||
}
|
||||
}
|
||||
|
|
@ -31,7 +30,6 @@ mod rustrt {
|
|||
fn calllink01() { unsafe { rustrt::rust_get_sched_id(); } }
|
||||
fn calllink02() { unsafe { rustrt::rust_get_argc(); } }
|
||||
fn calllink08() { unsafe { rustrt::get_task_id(); } }
|
||||
fn calllink09() { unsafe { rustrt::rust_sched_threads(); } }
|
||||
fn calllink10() { unsafe { rustrt::rust_get_task(); } }
|
||||
|
||||
fn runtest(f: extern fn(), frame_backoff: u32) {
|
||||
|
|
@ -64,7 +62,6 @@ pub fn main() {
|
|||
calllink01,
|
||||
calllink02,
|
||||
calllink08,
|
||||
calllink09,
|
||||
calllink10
|
||||
];
|
||||
let mut rng = rand::rng();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue