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

Function platform_time_first_call

tests/test_platform.c:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205} platform_time_worker_t;
206
207static void *platform_time_first_call(void *opaque) {
208 platform_time_worker_t *worker = opaque;
209 (void)atomic_fetch_add_explicit(worker->ready, 1, memory_order_acq_rel);
210 while (!atomic_load_explicit(worker->go, memory_order_acquire)) {
211 atomic_signal_fence(memory_order_seq_cst);
212 }
213 worker->value = cbm_now_ns();
214 return NULL;
215}
216
217TEST(platform_now_ns_concurrent_first_call) {
218 cbm_thread_t threads[PLATFORM_TIME_THREADS];

Callers

nothing calls this directly

Calls 1

cbm_now_nsFunction · 0.85

Tested by

no test coverage detected