| 471 | } |
| 472 | |
| 473 | int cbm_watcher_watch_count(cbm_watcher_t *w) { |
| 474 | if (!w) { |
| 475 | return 0; |
| 476 | } |
| 477 | cbm_mutex_lock(&w->projects_lock); |
| 478 | int count = (int)cbm_ht_count(w->projects); |
| 479 | cbm_mutex_unlock(&w->projects_lock); |
| 480 | return count; |
| 481 | } |
| 482 | |
| 483 | /* ── Single poll cycle ──────────────────────────────────────────── */ |
| 484 |