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

Method as_thread

core/src/task.rs:179–181  ·  view source on GitHub ↗

Get the thread from the task, panicking if it is a kernel task.

(&self)

Source from the content-addressed store, hash-verified

177
178 /// Get the thread from the task, panicking if it is a kernel task.
179 fn as_thread(&self) -> &Thread {
180 self.try_as_thread().expect("kernel task")
181 }
182}
183
184impl AsThread for TaskInner {

Callers 15

new_currentMethod · 0.80
add_task_to_tableFunction · 0.80
get_process_dataFunction · 0.80
from_threadMethod · 0.80
with_replacen_blockedFunction · 0.80
new_user_taskFunction · 0.80
handle_futex_deathFunction · 0.80
do_exitFunction · 0.80
raise_signal_fatalFunction · 0.80
check_regionFunction · 0.80
check_null_terminatedFunction · 0.80
current_in_foregroundMethod · 0.80

Implementers 1

task.rscore/src/task.rs

Calls 1

try_as_threadMethod · 0.80

Tested by

no test coverage detected