Fix rt-sched-1.rs (broke in 6fc730b)

This commit is contained in:
Ben Blum 2012-06-28 19:46:34 -04:00
parent e9382ef1ac
commit b6f103e7f9

View file

@ -1,13 +1,15 @@
// Tests of the runtime's scheduler interface
import ptr::is_null;
type sched_id = int;
type task_id = int;
type task_id = *libc::c_void;
type task = *libc::c_void;
type closure = *libc::c_void;
native mod rustrt {
fn rust_new_sched(num_threads: uint) -> sched_id;
fn rust_new_sched(num_threads: libc::uintptr_t) -> sched_id;
fn rust_get_sched_id() -> sched_id;
fn rust_new_task_in_sched(id: sched_id) -> task_id;
fn start_task(id: task_id, f: closure);