… | … | ||
---|---|---|---|
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 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |