Lines Matching refs:nwatchers
886 unsigned int nwatchers;
889 if (len <= loop->nwatchers)
894 fake_watcher_list = loop->watchers[loop->nwatchers];
895 fake_watcher_count = loop->watchers[loop->nwatchers + 1];
901 nwatchers = next_power_of_two(len + 2) - 2;
903 (nwatchers + 2) * sizeof(loop->watchers[0]));
907 for (i = loop->nwatchers; i < nwatchers; i++)
909 watchers[nwatchers] = fake_watcher_list;
910 watchers[nwatchers + 1] = fake_watcher_count;
913 loop->nwatchers = nwatchers;
967 if ((unsigned) w->fd >= loop->nwatchers)
1012 return (unsigned) fd < loop->nwatchers && loop->watchers[fd] != NULL;