(&mut self)
| 22 | &mut self.idle_task_cx as *mut _ |
| 23 | } |
| 24 | pub fn take_current(&mut self) -> Option<Arc<TaskControlBlock>> { |
| 25 | self.current.take() |
| 26 | } |
| 27 | pub fn current(&self) -> Option<Arc<TaskControlBlock>> { |
| 28 | self.current.as_ref().map(Arc::clone) |
| 29 | } |