Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
20
std::atomic<int> g_yield_ret{-1};
21
22
void 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
29
std::atomic<int> g_a_count{0};
Callers
nothing calls this directly
Calls
2
sys_yield
Function · 0.85
sys_exit
Function · 0.85
Tested by
no test coverage detected