Move some variable name to task_cx to task_cx_ptr2(ch5 ver).
This commit is contained in:
parent
87a3500b34
commit
5730bac89e
4 changed files with 14 additions and 8 deletions
|
@ -29,7 +29,7 @@ pub fn suspend_current_and_run_next() {
|
|||
let task = take_current_task().unwrap();
|
||||
|
||||
// ---- temporarily hold current PCB lock
|
||||
let task_cx_ptr = task.acquire_inner_lock().get_task_cx_ptr2();
|
||||
let task_cx_ptr2 = task.acquire_inner_lock().get_task_cx_ptr2();
|
||||
// ---- release current PCB lock
|
||||
|
||||
// ++++ temporarily hold current PCB lock
|
||||
|
@ -40,7 +40,7 @@ pub fn suspend_current_and_run_next() {
|
|||
// push back to ready queue.
|
||||
add_task(task);
|
||||
// jump to scheduling cycle
|
||||
schedule(task_cx_ptr);
|
||||
schedule(task_cx_ptr2);
|
||||
}
|
||||
|
||||
pub fn exit_current_and_run_next(exit_code: i32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue