()
| 61 | } |
| 62 | |
| 63 | pub fn current_task() -> Option<Arc<TaskControlBlock>> { |
| 64 | PROCESSOR.exclusive_access().current() |
| 65 | } |
| 66 | |
| 67 | pub fn current_process() -> Arc<ProcessControlBlock> { |
| 68 | current_task().unwrap().process.upgrade().unwrap() |
no test coverage detected