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

Function diag_test_pause_writer

src/foundation/diagnostics.c:482–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481#ifdef CBM_DIAGNOSTICS_ENABLE_TEST_API
482static void diag_test_pause_writer(void) {
483 if (!atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) {
484 return;
485 }
486 atomic_store_explicit(&g_diag_test_writer_reached, true, memory_order_release);
487 while (atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) {
488 diag_sleep_ms(DIAG_WAIT_SLICE_MS);
489 }
490}
491#endif
492
493static void append_trajectory(long uptime, size_t rss, size_t peak_rss, size_t commit,

Callers 1

write_diagnosticsFunction · 0.85

Calls 1

diag_sleep_msFunction · 0.85

Tested by

no test coverage detected