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

Comparing libev/ev.c (file contents):
Revision 1.87 by root, Sat Nov 10 03:36:15 2007 UTC vs.
Revision 1.89 by root, Sat Nov 10 19:48:44 2007 UTC

51 51
52# if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H 52# if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H
53# define EV_USE_EPOLL 1 53# define EV_USE_EPOLL 1
54# endif 54# endif
55 55
56# if HAVE_KQUEUE && HAVE_WORKING_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H 56# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H
57# define EV_USE_KQUEUE 1 57# define EV_USE_KQUEUE 1
58# endif 58# endif
59 59
60#endif 60#endif
61 61
1292{ 1292{
1293 ev_clear_pending (EV_A_ (W)w); 1293 ev_clear_pending (EV_A_ (W)w);
1294 if (!ev_is_active (w)) 1294 if (!ev_is_active (w))
1295 return; 1295 return;
1296 1296
1297 assert (("ev_io_start called with illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax));
1298
1297 wlist_del ((WL *)&anfds[w->fd].head, (WL)w); 1299 wlist_del ((WL *)&anfds[w->fd].head, (WL)w);
1298 ev_stop (EV_A_ (W)w); 1300 ev_stop (EV_A_ (W)w);
1299 1301
1300 fd_change (EV_A_ w->fd); 1302 fd_change (EV_A_ w->fd);
1301} 1303}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines