mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-23 09:56:24 +04:00
fix ch5
This commit is contained in:
parent
aa2db574e5
commit
9b5ddf22b2
@ -54,8 +54,7 @@ pub fn block_current_and_run_next() {
|
||||
schedule(task_cx_ptr);
|
||||
}
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user