Lines Matching defs:watchers
883 uv__io_t** watchers;
892 /* Preserve fake watcher list and count at the end of the watchers */
893 if (loop->watchers != NULL) {
894 fake_watcher_list = loop->watchers[loop->nwatchers];
895 fake_watcher_count = loop->watchers[loop->nwatchers + 1];
902 watchers = uv__reallocf(loop->watchers,
903 (nwatchers + 2) * sizeof(loop->watchers[0]));
905 if (watchers == NULL)
908 watchers[i] = NULL;
909 watchers[nwatchers] = fake_watcher_list;
910 watchers[nwatchers + 1] = fake_watcher_count;
912 loop->watchers = watchers;
950 if (loop->watchers[w->fd] == NULL) {
951 loop->watchers[w->fd] = w;
977 if (w == loop->watchers[w->fd]) {
979 loop->watchers[w->fd] = NULL;
1012 return (unsigned) fd < loop->nwatchers && loop->watchers[fd] != NULL;