Lines Matching defs:tsi
98 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
148 lws_service_fd_tsi(context, &eventfd, wsi->tsi);
265 int tsi = (int)(pt - &context->pt[0]);
269 tsi,
294 lwsl_cx_info(context, "thr %d: seen final static handle gone", tsi);
312 int tsi)
314 struct lws_context_per_thread *pt = &context->pt[tsi];
330 lws_libuv_stop_without_kill(const struct lws_context *context, int tsi)
332 if (pt_to_priv_uv(&context->pt[tsi])->io_loop)
333 uv_stop(pt_to_priv_uv(&context->pt[tsi])->io_loop);
337 lws_uv_getloop(struct lws_context *context, int tsi)
339 if (pt_to_priv_uv(&context->pt[tsi])->io_loop)
340 return pt_to_priv_uv(&context->pt[tsi])->io_loop;
388 lwsl_cx_info(context, "tsi %d: unclosed", n);
497 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
544 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
609 pt = &wsi->a.context->pt[(int)wsi->tsi];
644 elops_run_pt_uv(struct lws_context *context, int tsi)
646 if (pt_to_priv_uv(&context->pt[tsi])->io_loop)
647 uv_run(pt_to_priv_uv(&context->pt[tsi])->io_loop, 0);
651 elops_destroy_pt_uv(struct lws_context *context, int tsi)
653 struct lws_context_per_thread *pt = &context->pt[tsi];
672 // lwsl_cx_debug(context, "%d", tsi);
717 elops_init_pt_uv(struct lws_context *context, void *_loop, int tsi)
719 struct lws_context_per_thread *pt = &context->pt[tsi];
792 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
891 elops_foreign_thread_uv(struct lws_context *cx, int tsi)
893 struct lws_context_per_thread *pt = &cx->pt[tsi];