Lines Matching refs:events
52 int events; member
76 static void uv__stream_io(uv_loop_t* loop, uv__io_t* w, unsigned int events);
150 int events; in uv__stream_osx_select() local
214 events = 0; in uv__stream_osx_select()
216 events |= POLLIN; in uv__stream_osx_select()
218 events |= POLLOUT; in uv__stream_osx_select()
220 assert(events != 0 || FD_ISSET(s->int_fd, s->sread)); in uv__stream_osx_select()
221 if (events != 0) { in uv__stream_osx_select()
222 ACCESS_ONCE(int, s->events) = events; in uv__stream_osx_select()
228 assert((s->events == 0) || (stream->flags & UV_HANDLE_CLOSING)); in uv__stream_osx_select()
237 int events; in uv__stream_osx_select_cb() local
243 events = s->events; in uv__stream_osx_select_cb()
244 ACCESS_ONCE(int, s->events) = 0; in uv__stream_osx_select_cb()
246 assert(events != 0); in uv__stream_osx_select_cb()
247 assert(events == (events & (POLLIN | POLLOUT))); in uv__stream_osx_select_cb()
250 if ((events & POLLIN) && uv__io_active(&stream->io_watcher, POLLIN)) in uv__stream_osx_select_cb()
253 if ((events & POLLOUT) && uv__io_active(&stream->io_watcher, POLLOUT)) in uv__stream_osx_select_cb()
281 struct kevent events[1]; in uv__stream_try_select() local
306 ret = kevent(kq, filter, 1, events, 1, &timeout); in uv__stream_try_select()
314 if (ret == 0 || (events[0].flags & EV_ERROR) == 0 || events[0].data != EINVAL) in uv__stream_try_select()
339 s->events = 0; in uv__stream_try_select()
508 void uv__server_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) { in uv__server_io() argument
514 assert(events & POLLIN); in uv__server_io()
1189 static void uv__stream_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) { in uv__stream_io() argument
1207 if (events & (POLLIN | POLLERR | POLLHUP)) in uv__stream_io()
1219 if ((events & POLLHUP) && in uv__stream_io()
1230 if (events & (POLLOUT | POLLERR | POLLHUP)) { in uv__stream_io()