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

Comparing libev/ev_port.c (file contents):
Revision 1.20 by root, Fri Oct 15 22:14:05 2010 UTC vs.
Revision 1.21 by root, Fri Oct 15 22:44:41 2010 UTC

84 int res, i; 84 int res, i;
85 struct timespec ts; 85 struct timespec ts;
86 uint_t nget = 1; 86 uint_t nget = 1;
87 87
88 EV_RELEASE_CB; 88 EV_RELEASE_CB;
89 ts.tv_sec = (time_t)timeout; 89 EV_TS_SET (ts, timeout);
90 ts.tv_nsec = ((long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9);
91 res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts); 90 res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts);
92 EV_ACQUIRE_CB; 91 EV_ACQUIRE_CB;
93 92
94 if (res == -1) 93 if (res == -1)
95 { 94 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines