MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sum_worker

Function sum_worker

tests/test_worker_pool.c:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74/* ── Worker Pool Tests ────────────────────────────────────────────── */
75
76static void sum_worker(int idx, void *ctx) {
77 _Atomic int *sum = ctx;
78 atomic_fetch_add(sum, idx);
79}
80
81TEST(parallel_for_sum) {
82 _Atomic int sum;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected