Lines Matching refs:g_ev_count
60 static size_t g_ev_count = 0; variable
177 ev.data.ptr = &ev_fdinfo[g_ev_count]; in ev_init()
183 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_init()
184 ev_fdinfo[g_ev_count].cb = input_cb; in ev_init()
185 g_ev_count++; in ev_init()
190 if (epoll_ctl_failed && !g_ev_count) { in ev_init()
214 ev.data.ptr = static_cast<void*>(&ev_fdinfo[g_ev_count]); in ev_add_fd()
217 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_add_fd()
218 ev_fdinfo[g_ev_count].cb = std::move(cb); in ev_add_fd()
219 g_ev_count++; in ev_add_fd()
227 while (g_ev_count > 0) { in ev_exit()
228 ev_fdinfo[--g_ev_count].fd.reset(); in ev_exit()
237 g_polled_events_count = epoll_wait(g_epoll_fd, g_polled_events, g_ev_count, timeout); in ev_wait()