Lines Matching refs:io_loop
331 if (pt_to_priv_uv(&context->pt[tsi])->io_loop) in lws_libuv_stop_without_kill()
332 uv_stop(pt_to_priv_uv(&context->pt[tsi])->io_loop); in lws_libuv_stop_without_kill()
338 if (pt_to_priv_uv(&context->pt[tsi])->io_loop) in lws_uv_getloop()
339 return pt_to_priv_uv(&context->pt[tsi])->io_loop; in lws_uv_getloop()
383 while (budget-- && (m = uv_run(pt_to_priv_uv(pt)->io_loop, in elops_destroy_context1_uv()
407 if (!pt->event_loop_foreign && pt_to_priv_uv(pt)->io_loop) { in elops_destroy_context2_uv()
410 uv_stop(pt_to_priv_uv(pt)->io_loop); in elops_destroy_context2_uv()
413 uv_loop_close(pt_to_priv_uv(pt)->io_loop); in elops_destroy_context2_uv()
415 lws_free_set_NULL(pt_to_priv_uv(pt)->io_loop); in elops_destroy_context2_uv()
514 n = uv_poll_init(pt_to_priv_uv(pt)->io_loop, w_read->pwatcher, in elops_accept_uv()
517 n = uv_poll_init_socket(pt_to_priv_uv(pt)->io_loop, in elops_accept_uv()
551 if (!pt_to_priv_uv(pt)->io_loop || !w->context) { in elops_io_uv()
610 if (!ptpriv->io_loop) in elops_init_vhost_listen_wsi_uv()
619 n = uv_poll_init_socket(pt_to_priv_uv(pt)->io_loop, in elops_init_vhost_listen_wsi_uv()
645 if (pt_to_priv_uv(&context->pt[tsi])->io_loop) in elops_run_pt_uv()
646 uv_run(pt_to_priv_uv(&context->pt[tsi])->io_loop, 0); in elops_run_pt_uv()
659 if (!ptpriv->io_loop) in elops_destroy_pt_uv()
665 uv_stop(pt_to_priv_uv(pt)->io_loop); in elops_destroy_pt_uv()
725 if (!ptpriv->io_loop) { in elops_init_pt_uv()
744 ptpriv->io_loop = loop; in elops_init_pt_uv()
780 uv_timer_init(ptpriv->io_loop, &ptpriv->sultimer); in elops_init_pt_uv()