Lines Matching refs:tsi
97 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi]; in lws_io_cb()
147 lws_service_fd_tsi(context, &eventfd, wsi->tsi); in lws_io_cb()
264 int tsi = (int)(pt - &context->pt[0]); in lws_uv_close_cb_sa() local
268 tsi, in lws_uv_close_cb_sa()
293 lwsl_cx_info(context, "thr %d: seen final static handle gone", tsi); in lws_uv_close_cb_sa()
311 int tsi) in lws_libuv_static_refcount_add() argument
313 struct lws_context_per_thread *pt = &context->pt[tsi]; in lws_libuv_static_refcount_add()
329 lws_libuv_stop_without_kill(const struct lws_context *context, int tsi) in lws_libuv_stop_without_kill() argument
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()
336 lws_uv_getloop(struct lws_context *context, int tsi) in lws_uv_getloop() argument
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()
496 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi]; in elops_accept_uv()
543 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi]; in elops_io_uv()
608 pt = &wsi->a.context->pt[(int)wsi->tsi]; in elops_init_vhost_listen_wsi_uv()
643 elops_run_pt_uv(struct lws_context *context, int tsi) in elops_run_pt_uv() argument
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()
650 elops_destroy_pt_uv(struct lws_context *context, int tsi) in elops_destroy_pt_uv() argument
652 struct lws_context_per_thread *pt = &context->pt[tsi]; in elops_destroy_pt_uv()
716 elops_init_pt_uv(struct lws_context *context, void *_loop, int tsi) in elops_init_pt_uv() argument
718 struct lws_context_per_thread *pt = &context->pt[tsi]; in elops_init_pt_uv()
791 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi]; in lws_libuv_closewsi()
890 elops_foreign_thread_uv(struct lws_context *cx, int tsi) in elops_foreign_thread_uv() argument
892 struct lws_context_per_thread *pt = &cx->pt[tsi]; in elops_foreign_thread_uv()