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

Function watcher_test_wait_complete

tests/test_watcher.c:901–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901static bool watcher_test_wait_complete(atomic_bool *completed, uint64_t deadline_ms) {
902 while (cbm_now_ms() < deadline_ms) {
903 if (atomic_load_explicit(completed, memory_order_acquire)) {
904 return true;
905 }
906 cbm_usleep(1000);
907 }
908 return atomic_load_explicit(completed, memory_order_acquire);
909}
910
911static bool watcher_test_wait_process_gone(pid_t process, uint64_t deadline_ms) {
912 while (cbm_now_ms() < deadline_ms) {

Callers 1

test_watcher.cFile · 0.85

Calls 1

cbm_now_msFunction · 0.85

Tested by

no test coverage detected