Lines Matching refs:watchers
869 uv__io_t** watchers; in maybe_resize() local
879 if (loop->watchers != NULL) { in maybe_resize()
880 fake_watcher_list = loop->watchers[loop->nwatchers]; in maybe_resize()
881 fake_watcher_count = loop->watchers[loop->nwatchers + 1]; in maybe_resize()
888 watchers = uv__reallocf(loop->watchers, in maybe_resize()
889 (nwatchers + 2) * sizeof(loop->watchers[0])); in maybe_resize()
891 if (watchers == NULL) in maybe_resize()
894 watchers[i] = NULL; in maybe_resize()
895 watchers[nwatchers] = fake_watcher_list; in maybe_resize()
896 watchers[nwatchers + 1] = fake_watcher_count; in maybe_resize()
898 loop->watchers = watchers; in maybe_resize()
936 if (loop->watchers[w->fd] == NULL) { in uv__io_start()
937 loop->watchers[w->fd] = w; in uv__io_start()
963 if (w == loop->watchers[w->fd]) { in uv__io_stop()
965 loop->watchers[w->fd] = NULL; in uv__io_stop()
998 return (unsigned) fd < loop->nwatchers && loop->watchers[fd] != NULL; in uv__fd_exists()