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

Function leader_work

tests/system_test/clone_test.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void leader_work(void* /*arg*/) {
82 auto* current = TaskManagerSingleton::instance().GetCurrentTask();
83 g_leader_pid.store(current->pid);
84 (void)sys_sleep(500);
85 sys_exit(0);
86}
87
88void flags_reporter_work(void* /*arg*/) {
89 auto* current = TaskManagerSingleton::instance().GetCurrentTask();

Callers

nothing calls this directly

Calls 3

sys_sleepFunction · 0.85
sys_exitFunction · 0.85
GetCurrentTaskMethod · 0.80

Tested by

no test coverage detected