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

Function ordering_first

tests/system_test/mutex_test.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223};
224
225void ordering_first(void* arg) {
226 auto* ctx = reinterpret_cast<OrderingArgs*>(arg);
227 (void)ctx->mtx->Lock();
228 (void)sys_sleep(100);
229 ctx->sequence->store(ctx->task_id);
230 (void)ctx->mtx->UnLock();
231 sys_exit(0);
232}
233
234void ordering_second(void* arg) {
235 auto* ctx = reinterpret_cast<OrderingArgs*>(arg);

Callers

nothing calls this directly

Calls 4

sys_sleepFunction · 0.85
sys_exitFunction · 0.85
LockMethod · 0.45
UnLockMethod · 0.45

Tested by

no test coverage detected