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.44 by root, Thu Jul 9 09:11:20 2009 UTC vs.
Revision 1.45 by root, Fri Jul 10 00:36:21 2009 UTC

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; 122 int eventcnt;
123 123
124 if (expect_false (suspend_cb)) suspend_cb (EV_A); 124 EV_SUSPEND_CB;
125 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); 126 EV_RESUME_CB;
127 127
128 if (expect_false (eventcnt < 0)) 128 if (expect_false (eventcnt < 0))
129 { 129 {
130 if (errno != EINTR) 130 if (errno != EINTR)
131 ev_syserr ("(libev) epoll_wait"); 131 ev_syserr ("(libev) epoll_wait");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines