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

Function thread_func_b

tests/system_test/kernel_task_test.cpp:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void thread_func_b(void* arg) {
40 uint64_t id = (uint64_t)arg;
41 for (int i = 0; i < 5; ++i) {
42 klog::Info("Thread B: running, arg={}, iter={}", id, i);
43 g_task_b_counter++;
44 (void)sys_sleep(50);
45 }
46 klog::Info("Thread B: exit");
47 sys_exit(0);
48}
49} // namespace
50
51auto kernel_task_test() -> bool {

Callers

nothing calls this directly

Calls 3

InfoFunction · 0.85
sys_sleepFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected