MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / take_current_thread

Function take_current_thread

kernel/src/process.rs:330–332  ·  view source on GitHub ↗

Takes ownership of the current Thread

()

Source from the content-addressed store, hash-verified

328
329/// Takes ownership of the current Thread
330pub fn take_current_thread() -> Option<Box<Thread>> {
331 CURRENT_THREAD.write().take()
332}
333
334/// Makes the given thread the current thread
335/// If another thread was running schedule it

Callers 9

sys_receiveFunction · 0.85
sys_sendFunction · 0.85
sys_copy_rendezvousFunction · 0.85
sys_execFunction · 0.85
sys_mountFunction · 0.85
sys_listmountsFunction · 0.85
sys_umountFunction · 0.85
sys_closeFunction · 0.85
sys_await_interruptFunction · 0.85

Calls 2

takeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected