This commit is contained in:
Yifan Wu 2023-03-29 20:51:50 +08:00
parent a0e8c673a5
commit dd02ef7f6e

View File

@ -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();