Lines Matching refs:pt
36 struct lws_context_per_thread *pt = upt->pt;
39 lws_pt_lock(pt, __func__);
40 us = __lws_sul_service_ripe(pt->pt_sul_owner, LWS_COUNT_PT_SUL_OWNERS,
45 lws_pt_unlock(pt);
54 struct lws_context_per_thread *pt = upt->pt;
57 if (pt->is_destroyed)
60 lws_service_do_ripe_rxflow(pt);
65 if (!lws_service_adjust_timeout(pt->context, 1, pt->tid)) {
67 _lws_plat_service_forced_tsi(pt->context, pt->tid);
69 if (!lws_service_adjust_timeout(pt->context, 1, pt->tid)) {
80 lws_pt_lock(pt, __func__);
81 us = __lws_sul_service_ripe(pt->pt_sul_owner, LWS_COUNT_PT_SUL_OWNERS,
89 lws_pt_unlock(pt);
91 if (pt->destroy_self)
92 lws_context_destroy(pt->context);
101 struct lws_context_per_thread *pt;
117 pt = &context->pt[(int)wu->wsi->tsi];
118 if (pt->is_destroyed)
123 if (pt->destroy_self) {
124 lwsl_cx_notice(context, "pt destroy self coming true");
125 lws_context_destroy(pt->context);
131 uloop_timeout_cancel(&pt_to_priv_uloop(pt)->idle_timer);
132 uloop_timeout_set(&pt_to_priv_uloop(pt)->idle_timer, 1);
153 struct lws_context_per_thread *pt = &context->pt[tsi];
154 struct lws_pt_eventlibs_uloop *ptpr = pt_to_priv_uloop(pt);
156 ptpr->pt = pt;
190 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
195 if (wsi->a.context->being_destroyed || pt->is_destroyed)
231 struct lws_context_per_thread *pt = &context->pt[tsi];
232 struct lws_pt_eventlibs_uloop *ptpr = pt_to_priv_uloop(pt);
243 struct lws_context_per_thread *pt;
248 pt = &wsi->a.context->pt[(int)wsi->tsi];
249 if (pt->is_destroyed)