… | |
… | |
93 | { |
93 | { |
94 | struct pollfd *p; |
94 | struct pollfd *p; |
95 | int res; |
95 | int res; |
96 | |
96 | |
97 | EV_RELEASE_CB; |
97 | EV_RELEASE_CB; |
98 | res = poll (polls, pollcnt, EV_TS_TO_MS (timeout)); |
98 | res = poll (polls, pollcnt, EV_TS_TO_MSEC (timeout)); |
99 | EV_ACQUIRE_CB; |
99 | EV_ACQUIRE_CB; |
100 | |
100 | |
101 | if (ecb_expect_false (res < 0)) |
101 | if (ecb_expect_false (res < 0)) |
102 | { |
102 | { |
103 | if (errno == EBADF) |
103 | if (errno == EBADF) |
… | |
… | |
134 | |
134 | |
135 | inline_size |
135 | inline_size |
136 | int |
136 | int |
137 | poll_init (EV_P_ int flags) |
137 | poll_init (EV_P_ int flags) |
138 | { |
138 | { |
139 | backend_mintime = 1e-3; |
139 | backend_mintime = EV_TS_CONST (1e-3); |
140 | backend_modify = poll_modify; |
140 | backend_modify = poll_modify; |
141 | backend_poll = poll_poll; |
141 | backend_poll = poll_poll; |
142 | |
142 | |
143 | pollidxs = 0; pollidxmax = 0; |
143 | pollidxs = 0; pollidxmax = 0; |
144 | polls = 0; pollmax = 0; pollcnt = 0; |
144 | polls = 0; pollmax = 0; pollcnt = 0; |