Lines Matching refs:nwatchers
872 unsigned int nwatchers; in maybe_resize() local
875 if (len <= loop->nwatchers) 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()
887 nwatchers = next_power_of_two(len + 2) - 2; in maybe_resize()
889 (nwatchers + 2) * sizeof(loop->watchers[0])); in maybe_resize()
893 for (i = loop->nwatchers; i < nwatchers; i++) in maybe_resize()
895 watchers[nwatchers] = fake_watcher_list; in maybe_resize()
896 watchers[nwatchers + 1] = fake_watcher_count; in maybe_resize()
899 loop->nwatchers = nwatchers; in maybe_resize()
953 if ((unsigned) w->fd >= loop->nwatchers) in uv__io_stop()
998 return (unsigned) fd < loop->nwatchers && loop->watchers[fd] != NULL; in uv__fd_exists()