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

Function orphan_work

tests/system_test/exit_test.cpp:272–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270// ---------------------------------------------------------------------------
271
272void orphan_work(void* arg) {
273 auto* flag = reinterpret_cast<std::atomic<int>*>(arg);
274 klog::Debug("orphan_work: running");
275 (void)sys_sleep(30);
276 *flag = 1;
277 klog::Debug("orphan_work: done");
278 sys_exit(0);
279}
280
281void test_orphan_exit(void* /*arg*/) {
282 klog::Info("=== Orphan Exit 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