Lines Matching refs:watcher
33 lws_ev_hrtimer_cb(struct ev_loop *loop, struct ev_timer *watcher, int revents)
35 struct lws_pt_eventlibs_libev *ptpr = lws_container_of(watcher,
88 lws_accept_cb(struct ev_loop *loop, struct ev_io *watcher, int revents)
90 struct lws_io_watcher_libev *lws_io = lws_container_of(watcher,
91 struct lws_io_watcher_libev, watcher);
101 eventfd.fd = watcher->fd;
114 wsi = wsi_from_fd(context, watcher->fd);
124 lws_ev_sigint_cb(struct ev_loop *loop, struct ev_signal *watcher, int revents)
126 struct lws_context *context = watcher->data;
129 context->eventlib_signal_cb((void *)watcher, watcher->signum);
150 ev_io_init(&vh_to_priv_ev(vh)->w_accept.watcher,
152 ev_io_start(ptpr->io_loop, &vh_to_priv_ev(vh)->w_accept.watcher);
162 struct ev_signal *w_sigint = &ptpr->w_sigint.watcher;
187 /* Register the signal watcher unless it's a foreign loop */
249 ev_io_stop(ptpr->io_loop, &vh_to_priv_ev(vh)->w_accept.watcher);
268 ev_signal_stop(ptpr->io_loop, &ptpr->w_sigint.watcher);
299 ev_io_init(&w->w_read.watcher, lws_accept_cb, fd, EV_READ);
300 ev_io_init(&w->w_write.watcher, lws_accept_cb, fd, EV_WRITE);
324 ev_io_start(ptpr->io_loop, &w->w_write.watcher);
326 ev_io_start(ptpr->io_loop, &w->w_read.watcher);
329 ev_io_stop(ptpr->io_loop, &w->w_write.watcher);
331 ev_io_stop(ptpr->io_loop, &w->w_read.watcher);
397 ev_io_init(&w->w_read.watcher, lws_accept_cb, fd, EV_READ);
398 //ev_io_init(&w->w_write.watcher, lws_accept_cb, fd, EV_WRITE);
412 ev_io_stop(ptpr->io_loop, &w->w_read.watcher);
413 ev_io_stop(ptpr->io_loop, &w->w_write.watcher);