| 1308 | } |
| 1309 | |
| 1310 | int cbm_watcher_watch_count(cbm_watcher_t *w) { |
| 1311 | if (!w) { |
| 1312 | return 0; |
| 1313 | } |
| 1314 | cbm_mutex_lock(&w->projects_lock); |
| 1315 | int count = (int)cbm_ht_count(w->projects); |
| 1316 | cbm_mutex_unlock(&w->projects_lock); |
| 1317 | return count; |
| 1318 | } |
| 1319 | |
| 1320 | /* ── Single poll cycle ──────────────────────────────────────────── */ |
| 1321 |