MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / on_enter

Method on_enter

core/src/task.rs:161–165  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

159#[extern_trait]
160unsafe 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();

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected