about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_kernel.cpp')
-rw-r--r--src/rt/rust_kernel.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp
index c04a8d9d427..59175402246 100644
--- a/src/rt/rust_kernel.cpp
+++ b/src/rt/rust_kernel.cpp
@@ -65,6 +65,11 @@ int rust_kernel::start_schedulers()
     return rval;
 }
 
+rust_scheduler *
+rust_kernel::get_default_scheduler() {
+    return sched;
+}
+
 void
 rust_kernel::fail() {
     // FIXME: On windows we're getting "Application has requested the
@@ -77,17 +82,6 @@ rust_kernel::fail() {
     sched->kill_all_tasks();
 }
 
-rust_task_id
-rust_kernel::create_task(rust_task *spawner, const char *name,
-                         size_t init_stack_sz) {
-    return sched->create_task(spawner, name, init_stack_sz);
-}
-
-rust_task_id
-rust_kernel::create_task(rust_task *spawner, const char *name) {
-    return create_task(spawner, name, env->min_stack_size);
-}
-
 void
 rust_kernel::register_task(rust_task *task) {
     scoped_lock with(_kernel_lock);