ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_epoll.c
(Generate patch)

Comparing libev/ev_epoll.c (file contents):
Revision 1.43 by root, Fri Nov 7 15:07:50 2008 UTC vs.
Revision 1.44 by root, Thu Jul 9 09:11:20 2009 UTC

117 117
118static void 118static void
119epoll_poll (EV_P_ ev_tstamp timeout) 119epoll_poll (EV_P_ ev_tstamp timeout)
120{ 120{
121 int i; 121 int i;
122 int eventcnt;
123
124 if (expect_false (suspend_cb)) suspend_cb (EV_A);
122 int eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax, (int)ceil (timeout * 1000.)); 125 eventcnt = epoll_wait (backend_fd, epoll_events, epoll_eventmax, (int)ceil (timeout * 1000.));
126 if (expect_false (resume_cb)) resume_cb (EV_A);
123 127
124 if (expect_false (eventcnt < 0)) 128 if (expect_false (eventcnt < 0))
125 { 129 {
126 if (errno != EINTR) 130 if (errno != EINTR)
127 ev_syserr ("(libev) epoll_wait"); 131 ev_syserr ("(libev) epoll_wait");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines