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

Function platform_time_first_call

tests/test_platform.c:579–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577} platform_time_worker_t;
578
579static void *platform_time_first_call(void *opaque) {
580 platform_time_worker_t *worker = opaque;
581 (void)atomic_fetch_add_explicit(worker->ready, 1, memory_order_acq_rel);
582 while (!atomic_load_explicit(worker->go, memory_order_acquire)) {
583 atomic_signal_fence(memory_order_seq_cst);
584 }
585 worker->value = cbm_now_ns();
586 return NULL;
587}
588
589TEST(platform_now_ns_concurrent_first_call) {
590 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