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

Function yield_task_a

tests/system_test/yield_test.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31std::atomic<bool> g_fairness_done{false};
32
33void yield_task_a(void* /*arg*/) {
34 for (int i = 0; i < 10; ++i) {
35 g_a_count++;
36 (void)sys_yield();
37 }
38 sys_exit(0);
39}
40
41void yield_task_b(void* /*arg*/) {
42 for (int i = 0; i < 10; ++i) {

Callers

nothing calls this directly

Calls 2

sys_yieldFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected