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

Function schedule_thread

kernel/src/process.rs:321–326  ·  view source on GitHub ↗

Adds a thread to the front of the running queue so it will be scheduled next

(thread: Box<Thread>)

Source from the content-addressed store, hash-verified

319/// Adds a thread to the front of the running queue
320/// so it will be scheduled next
321pub fn schedule_thread(thread: Box<Thread>) {
322 // Turn off interrupts while modifying process table
323 interrupts::without_interrupts(|| {
324 RUNNING_QUEUE.write().push_front(thread);
325 });
326}
327
328
329/// Takes ownership of the current Thread

Callers 8

set_current_threadFunction · 0.85
new_kernel_threadFunction · 0.85
sys_receiveFunction · 0.85
sys_sendFunction · 0.85
sys_execFunction · 0.85
sys_closeFunction · 0.85
kernel_thread_mainFunction · 0.85
keyboard_handler_innerFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected