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.45 by root, Fri Jul 10 00:36:21 2009 UTC vs.
Revision 1.46 by root, Fri Jul 10 19:10:19 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 EV_SUSPEND_CB; 124 EV_RELEASE_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 EV_RESUME_CB; 126 EV_ACQUIRE_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