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

Function cbm_watcher_touch

src/watcher/watcher.c:1252–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252void cbm_watcher_touch(cbm_watcher_t *w, const char *project_name) {
1253 if (!w || !project_name) {
1254 return;
1255 }
1256 cbm_mutex_lock(&w->projects_lock);
1257 project_state_t *s = cbm_ht_get(w->projects, project_name);
1258 if (s) {
1259 /* Reset backoff — poll immediately on next cycle */
1260 s->next_poll_ns = 0;
1261 }
1262 cbm_mutex_unlock(&w->projects_lock);
1263}
1264
1265cbm_watcher_project_status_t cbm_watcher_project_status(cbm_watcher_t *w,
1266 const char *project_name) {

Callers 4

test_watcher.cFile · 0.85
wt_poll_until_countFunction · 0.85
nongit_pollFunction · 0.85

Calls 3

cbm_mutex_lockFunction · 0.85
cbm_ht_getFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by 2

wt_poll_until_countFunction · 0.68
nongit_pollFunction · 0.68