Lines Matching defs:events
52 int events;
66 static void uv__stream_io(uv_loop_t* loop, uv__io_t* w, unsigned int events);
140 int events;
169 /* Wait indefinitely for fd events */
203 /* Handle events */
204 events = 0;
206 events |= POLLIN;
208 events |= POLLOUT;
210 assert(events != 0 || FD_ISSET(s->int_fd, s->sread));
211 if (events != 0) {
212 ACCESS_ONCE(int, s->events) = events;
218 assert((s->events == 0) || (stream->flags & UV_HANDLE_CLOSING));
227 int events;
232 /* Get and reset stream's events */
233 events = s->events;
234 ACCESS_ONCE(int, s->events) = 0;
236 assert(events != 0);
237 assert(events == (events & (POLLIN | POLLOUT)));
240 if ((events & POLLIN) && uv__io_active(&stream->io_watcher, POLLIN))
243 if ((events & POLLOUT) && uv__io_active(&stream->io_watcher, POLLOUT))
271 struct kevent events[1];
296 ret = kevent(kq, filter, 1, events, 1, &timeout);
304 if (ret == 0 || (events[0].flags & EV_ERROR) == 0 || events[0].data != EINVAL)
329 s->events = 0;
505 void uv__server_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
510 assert(events & POLLIN);
1251 static void uv__stream_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
1269 if (events & (POLLIN | POLLERR | POLLHUP))
1276 * events and uv__read() reported a partial read but not EOF. If the EOF
1281 if ((events & POLLHUP) &&
1292 if (events & (POLLOUT | POLLERR | POLLHUP)) {