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

Function diag_test_pause_writer

src/foundation/diagnostics.c:483–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482#ifdef CBM_DIAGNOSTICS_ENABLE_TEST_API
483static void diag_test_pause_writer(void) {
484 if (!atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) {
485 return;
486 }
487 atomic_store_explicit(&g_diag_test_writer_reached, true, memory_order_release);
488 while (atomic_load_explicit(&g_diag_test_hold_writer, memory_order_acquire)) {
489 diag_sleep_ms(DIAG_WAIT_SLICE_MS);
490 }
491}
492#endif
493
494static 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