TaskStatus::Blocking->Blocked

This commit is contained in:
Yifan Wu 2023-01-19 13:55:17 +08:00
parent 794ba8f7a6
commit 29585b7982
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ pub fn suspend_current_and_run_next() {
pub fn block_current_task() -> *mut TaskContext {
let task = take_current_task().unwrap();
let mut task_inner = task.inner_exclusive_access();
task_inner.task_status = TaskStatus::Blocking;
task_inner.task_status = TaskStatus::Blocked;
&mut task_inner.task_cx as *mut TaskContext
}

View File

@ -76,5 +76,5 @@ impl TaskControlBlock {
pub enum TaskStatus {
Ready,
Running,
Blocking,
Blocked,
}