(&self)
| 159 | #[extern_trait] |
| 160 | unsafe impl TaskExt for Box<Thread> { |
| 161 | fn on_enter(&self) { |
| 162 | let scope = self.proc_data.scope.read(); |
| 163 | unsafe { ActiveScope::set(&scope) }; |
| 164 | core::mem::forget(scope); |
| 165 | } |
| 166 | |
| 167 | fn on_leave(&self) { |
| 168 | ActiveScope::set_global(); |