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

Function normal_work

tests/system_test/exit_test.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39// ---------------------------------------------------------------------------
40
41void normal_work(void* arg) {
42 auto* flag = reinterpret_cast<std::atomic<int>*>(arg);
43 klog::Debug("normal_work: running");
44 (void)sys_sleep(30);
45 *flag = 1;
46 klog::Debug("normal_work: done, calling sys_exit(0)");
47 sys_exit(0);
48}
49
50void test_exit_normal(void* /*arg*/) {
51 klog::Info("=== Exit Normal Test ===");

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.85
sys_sleepFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected