Lines Matching refs:watchers
816 uv__io_t** watchers; in maybe_resize() local
826 if (loop->watchers != NULL) { in maybe_resize()
827 fake_watcher_list = loop->watchers[loop->nwatchers]; in maybe_resize()
828 fake_watcher_count = loop->watchers[loop->nwatchers + 1]; in maybe_resize()
835 watchers = uv__reallocf(loop->watchers, in maybe_resize()
836 (nwatchers + 2) * sizeof(loop->watchers[0])); in maybe_resize()
838 if (watchers == NULL) in maybe_resize()
841 watchers[i] = NULL; in maybe_resize()
842 watchers[nwatchers] = fake_watcher_list; in maybe_resize()
843 watchers[nwatchers + 1] = fake_watcher_count; in maybe_resize()
845 loop->watchers = watchers; in maybe_resize()
888 if (loop->watchers[w->fd] == NULL) { in uv__io_start()
889 loop->watchers[w->fd] = w; in uv__io_start()
915 if (w == loop->watchers[w->fd]) { in uv__io_stop()
917 loop->watchers[w->fd] = NULL; in uv__io_stop()
950 return (unsigned) fd < loop->nwatchers && loop->watchers[fd] != NULL; in uv__fd_exists()