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

Function watcher_test_wait_complete

tests/test_watcher.c:1063–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063static bool watcher_test_wait_complete(atomic_bool *completed, uint64_t deadline_ms) {
1064 while (cbm_now_ms() < deadline_ms) {
1065 if (atomic_load_explicit(completed, memory_order_acquire)) {
1066 return true;
1067 }
1068 cbm_usleep(1000);
1069 }
1070 return atomic_load_explicit(completed, memory_order_acquire);
1071}
1072
1073static bool watcher_test_wait_process_gone(pid_t process, uint64_t deadline_ms) {
1074 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