diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-01-04 20:11:39 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-06 22:40:31 -0800 |
| commit | 25e81e34eaaa1953ca301e95314c1ed01e773a9d (patch) | |
| tree | c8da5e9478d874344dc2c836d2c88dd2b1ea045b /src/rt/test/rust_test_runtime.cpp | |
| parent | 98f5109cde838e66d629bf05c804ad1ca9b06c42 (diff) | |
| download | rust-25e81e34eaaa1953ca301e95314c1ed01e773a9d.tar.gz rust-25e81e34eaaa1953ca301e95314c1ed01e773a9d.zip | |
rewrite task tests
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
| -rw-r--r-- | src/rt/test/rust_test_runtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/test/rust_test_runtime.cpp b/src/rt/test/rust_test_runtime.cpp index 644a23f28b1..7bfa06fdc99 100644 --- a/src/rt/test/rust_test_runtime.cpp +++ b/src/rt/test/rust_test_runtime.cpp @@ -39,7 +39,7 @@ rust_domain_test::run() { return true; } -void task_entry(uintptr_t retptr, uintptr_t env) { +void task_entry(void *, rust_boxed_closure *, void *) { printf("task entry\n"); } @@ -47,7 +47,7 @@ void rust_task_test::worker::run() { rust_task_id root_id = kernel->create_task(NULL, "main"); rust_task *root_task = kernel->get_task_by_id(root_id); - root_task->start(&task_entry, (uintptr_t)NULL); + root_task->start(&task_entry, NULL, NULL); root_task->sched->start_main_loop(); } |
