From dd02ef7f6e5795f954938d8130e56b08c2cacf64 Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Wed, 29 Mar 2023 20:51:50 +0800 Subject: [PATCH] fix ch5 --- os/src/task/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/os/src/task/mod.rs b/os/src/task/mod.rs index c8354805..4755e7a6 100644 --- a/os/src/task/mod.rs +++ b/os/src/task/mod.rs @@ -58,6 +58,7 @@ pub fn block_current_and_run_next() { } use crate::board::QEMUExit; +/// Exit the current 'Running' task and run the next task in task list. pub fn exit_current_and_run_next(exit_code: i32) { let task = take_current_task().unwrap(); let mut task_inner = task.inner_exclusive_access();