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

Comparing libev/ev_kqueue.c (file contents):
Revision 1.46 by root, Fri Oct 15 22:44:41 2010 UTC vs.
Revision 1.47 by root, Fri Oct 15 22:48:25 2010 UTC

95 kqueue_eventmax = array_nextsize (sizeof (struct kevent), kqueue_eventmax, kqueue_changecnt); 95 kqueue_eventmax = array_nextsize (sizeof (struct kevent), kqueue_eventmax, kqueue_changecnt);
96 kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax); 96 kqueue_events = (struct kevent *)ev_malloc (sizeof (struct kevent) * kqueue_eventmax);
97 } 97 }
98 98
99 EV_RELEASE_CB; 99 EV_RELEASE_CB;
100 EV_SET_TV (tv, timeout); 100 EV_TS_SET (ts, timeout);
101 res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts); 101 res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts);
102 EV_ACQUIRE_CB; 102 EV_ACQUIRE_CB;
103 kqueue_changecnt = 0; 103 kqueue_changecnt = 0;
104 104
105 if (expect_false (res < 0)) 105 if (expect_false (res < 0))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines