Skip to content

Commit

Permalink
TaskStatus::Blocking->Blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Jan 19, 2023
1 parent be77eec commit afcb0d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion os/src/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion os/src/task/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ impl TaskControlBlock {
pub enum TaskStatus {
Ready,
Running,
Blocking,
Blocked,
}

0 comments on commit afcb0d9

Please sign in to comment.