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

Function diag_thread_fn

src/foundation/diagnostics.c:623–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623static void *diag_thread_fn(void *arg) {
624 (void)arg;
625 while (!atomic_load_explicit(&g_diag_stop, memory_order_acquire)) {
626 write_diagnostics();
627 if (!atomic_load_explicit(&g_diag_stop, memory_order_acquire)) {
628 diag_wait_for_interval();
629 }
630 }
631 atomic_store_explicit(&g_diag_done, true, memory_order_release);
632 return NULL;
633}
634
635static void diag_cleanup_live_files(void) {
636 diag_native_unlink(DIAG_SNAPSHOT_NAME);

Callers

nothing calls this directly

Calls 2

write_diagnosticsFunction · 0.85
diag_wait_for_intervalFunction · 0.85

Tested by

no test coverage detected