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

Function diagnostics_wait_for_file

tests/test_diagnostics.c:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static bool diagnostics_wait_for_file(const char *path, unsigned int timeout_ms) {
64 uint64_t deadline = cbm_now_ms() + timeout_ms;
65 while (cbm_now_ms() < deadline) {
66 if (cbm_file_exists(path)) {
67 return true;
68 }
69 diagnostics_wait_ms(10);
70 }
71 return cbm_file_exists(path);
72}
73
74static char *diagnostics_read_file(const char *path) {
75 FILE *file = cbm_fopen(path, "rb");

Callers 1

test_diagnostics.cFile · 0.85

Calls 3

cbm_now_msFunction · 0.85
cbm_file_existsFunction · 0.85
diagnostics_wait_msFunction · 0.85

Tested by

no test coverage detected