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

Function yield_basic_work

tests/system_test/yield_test.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20std::atomic<int> g_yield_ret{-1};
21
22void yield_basic_work(void* /*arg*/) {
23 int ret = sys_yield();
24 g_yield_ret.store(ret);
25 sys_exit(0);
26}
27
28/// Test 2: yield preserves execution order fairness
29std::atomic<int> g_a_count{0};

Callers

nothing calls this directly

Calls 2

sys_yieldFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected