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

Function count_visit_worker

tests/test_worker_pool.c:313–316  ·  view source on GitHub ↗

Helper for no_duplicates test */

Source from the content-addressed store, hash-verified

311
312/* Helper for no_duplicates test */
313static void count_visit_worker(int idx, void *ctx) {
314 _Atomic int *c = ctx;
315 atomic_fetch_add(&c[idx], 1);
316}
317
318TEST(parallel_for_no_duplicates) {
319 /* Verify no index is visited more than once (atomic increment per slot) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected