Lines Matching refs:io_loop
173 event_base_loopbreak(pt_to_priv_event(pt)->io_loop); in lws_event_sigint_cb()
187 w_read->watcher = event_new(ptpr->io_loop, wsi->desc.sockfd, in elops_listen_init_event()
215 ptpr->io_loop = loop; in elops_init_pt_event()
280 wpr->w_read.watcher = event_new(ptpr->io_loop, fd, in elops_accept_event()
282 wpr->w_write.watcher = event_new(ptpr->io_loop, fd, in elops_accept_event()
295 if (!ptpr->io_loop || wsi->a.context->being_destroyed || in elops_io_event()
329 if (pt_to_priv_event(&context->pt[tsi])->io_loop) in elops_run_pt_event()
331 pt_to_priv_event(&context->pt[tsi])->io_loop); in elops_run_pt_event()
354 if (!ptpr->io_loop) in elops_destroy_pt_event()
365 event_base_loopexit(ptpr->io_loop, NULL); in elops_destroy_pt_event()
432 w->w_read.watcher = event_new(ptpr->io_loop, fd, (EV_READ | EV_PERSIST), in elops_init_vhost_listen_wsi_event()
434 w->w_write.watcher = event_new(ptpr->io_loop, fd, in elops_init_vhost_listen_wsi_event()
458 if (pt->event_loop_foreign || !ptpr->io_loop) in elops_destroy_context2_event()
462 event_base_loopexit(ptpr->io_loop, NULL); in elops_destroy_context2_event()
466 (m = event_base_loop(ptpr->io_loop, EVLOOP_NONBLOCK))) in elops_destroy_context2_event()
471 event_base_free(ptpr->io_loop); in elops_destroy_context2_event()
472 ptpr->io_loop = NULL; in elops_destroy_context2_event()