We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9382ef commit b6f103eCopy full SHA for b6f103e
src/test/run-pass/rt-sched-1.rs
@@ -1,13 +1,15 @@
1
// Tests of the runtime's scheduler interface
2
3
+import ptr::is_null;
4
+
5
type sched_id = int;
-type task_id = int;
6
+type task_id = *libc::c_void;
7
8
type task = *libc::c_void;
9
type closure = *libc::c_void;
10
11
native mod rustrt {
- fn rust_new_sched(num_threads: uint) -> sched_id;
12
+ fn rust_new_sched(num_threads: libc::uintptr_t) -> sched_id;
13
fn rust_get_sched_id() -> sched_id;
14
fn rust_new_task_in_sched(id: sched_id) -> task_id;
15
fn start_task(id: task_id, f: closure);
0 commit comments