MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / FindTask

Method FindTask

src/task/task_manager.cpp:175–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175auto TaskManager::FindTask(Pid pid) -> TaskControlBlock* {
176 LockGuard lock_guard{task_table_lock_};
177 auto it = task_table_.find(pid);
178 return (it != task_table_.end()) ? it->second.get() : nullptr;
179}
180
181auto TaskManager::Balance() -> void {
182 auto current_core = cpu_io::GetCurrentCoreId();

Callers 4

sys_sched_getaffinityFunction · 0.80
sys_sched_setaffinityFunction · 0.80
test_zombie_reapFunction · 0.80
test_clone_threadFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_zombie_reapFunction · 0.64
test_clone_threadFunction · 0.64