Lines Matching refs:ev_count
49 static unsigned ev_count = 0; variable
92 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init()
99 ev_fdinfo[ev_count].fd = fd; in ev_init()
100 ev_fdinfo[ev_count].cb = std::move(input_cb); in ev_init()
101 ev_count++; in ev_init()
109 if (epollctlfail && !ev_count) { in ev_init()
129 ev.data.ptr = static_cast<void*>(&ev_fdinfo[ev_count]); in ev_add_fd()
132 ev_fdinfo[ev_count].fd = fd; in ev_add_fd()
133 ev_fdinfo[ev_count].cb = std::move(cb); in ev_add_fd()
134 ev_count++; in ev_add_fd()
142 while (ev_count > 0) { in ev_exit()
143 close(ev_fdinfo[--ev_count].fd); in ev_exit()
151 npolledevents = epoll_wait(g_epoll_fd, polledevents, ev_count, timeout); in ev_wait()