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

Method try_as_thread

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

Source from the content-addressed store, hash-verified

183
184impl AsThread for TaskInner {
185 fn try_as_thread(&self) -> Option<&Thread> {
186 self.task_ext()
187 .map(|ext| unsafe { ext.downcast_ref::<Box<Thread>>() }.as_ref())
188 }
189}
190
191/// [`Process`]-shared data.

Callers 6

as_threadMethod · 0.80
poll_timerFunction · 0.80
set_timer_stateFunction · 0.80
send_signal_to_threadFunction · 0.80
access_user_memoryFunction · 0.80
handle_page_faultFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected