Lines Matching refs:g_ev_count
55 static size_t g_ev_count = 0; variable
101 ev.data.ptr = &ev_fdinfo[g_ev_count]; in ev_init()
107 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_init()
108 ev_fdinfo[g_ev_count].cb = input_cb; in ev_init()
109 g_ev_count++; in ev_init()
114 if (epoll_ctl_failed && !g_ev_count) { in ev_init()
133 ev.data.ptr = static_cast<void*>(&ev_fdinfo[g_ev_count]); in ev_add_fd()
136 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_add_fd()
137 ev_fdinfo[g_ev_count].cb = std::move(cb); in ev_add_fd()
138 g_ev_count++; in ev_add_fd()
146 while (g_ev_count > 0) { in ev_exit()
147 ev_fdinfo[--g_ev_count].fd.reset(); in ev_exit()
155 g_polled_events_count = epoll_wait(g_epoll_fd, g_polled_events, g_ev_count, timeout); in ev_wait()