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.15 by root, Fri Jul 10 00:36:21 2009 UTC vs.
Revision 1.16 by root, Fri Jul 10 19:10:19 2009 UTC

83{ 83{
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_SUSPEND_CB; 88 EV_RELEASE_CB;
89 ts.tv_sec = (time_t)timeout; 89 ts.tv_sec = (time_t)timeout;
90 ts.tv_nsec = (long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9; 90 ts.tv_nsec = (long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9;
91 res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts); 91 res = port_getn (backend_fd, port_events, port_eventmax, &nget, &ts);
92 EV_RESUME_CB; 92 EV_ACQUIRE_CB;
93 93
94 if (res == -1) 94 if (res == -1)
95 { 95 {
96 if (errno != EINTR && errno != ETIME) 96 if (errno != EINTR && errno != ETIME)
97 ev_syserr ("(libev) port_getn"); 97 ev_syserr ("(libev) port_getn");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines