Skip to content

Commit bf250be

Browse files
committed
rt: Create new tasks through the current thread's scheduler
1 parent 3d0e7a7 commit bf250be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_builtin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ get_task_id() {
385385
extern "C" CDECL rust_task_id
386386
new_task() {
387387
rust_task *task = rust_task_thread::get_task();
388-
return task->kernel->create_task(task, NULL);
388+
return task->sched->create_task(task, NULL);
389389
}
390390

391391
extern "C" CDECL void

0 commit comments

Comments
 (0)