if (expect_false (eventcnt == epoll_eventmax))
{
ev_free (epoll_events);
- epoll_eventmax = array_roundsize (epoll_events, epoll_eventmax << 1);
+ epoll_eventmax = array_nextsize (sizeof (struct epoll_event), epoll_eventmax, epoll_eventmax + 1);
epoll_events = (struct epoll_event *)ev_malloc (sizeof (struct epoll_event) * epoll_eventmax);
}
}
-static int
+int inline_size
epoll_init (EV_P_ int flags)
{
backend_fd = epoll_create (256);
return EVBACKEND_EPOLL;
}
-static void
+void inline_size
epoll_destroy (EV_P)
{
- close (backend_fd);
-
ev_free (epoll_events);
}
-static void
+void inline_size
epoll_fork (EV_P)
{
close (backend_fd);