| 1034 | } |
| 1035 | |
| 1036 | int cbm_watcher_watch_count(cbm_watcher_t *w) { |
| 1037 | if (!w) { |
| 1038 | return 0; |
| 1039 | } |
| 1040 | cbm_mutex_lock(&w->projects_lock); |
| 1041 | int count = (int)cbm_ht_count(w->projects); |
| 1042 | cbm_mutex_unlock(&w->projects_lock); |
| 1043 | return count; |
| 1044 | } |
| 1045 | |
| 1046 | /* ── Single poll cycle ──────────────────────────────────────────── */ |
| 1047 |