Lines Matching refs:pt

37 	struct lws_context_per_thread *pt = ptpr->pt;
40 lws_pt_lock(pt, __func__);
41 us = __lws_sul_service_ripe(pt->pt_sul_owner, LWS_COUNT_PT_SUL_OWNERS,
47 lws_pt_unlock(pt);
55 struct lws_context_per_thread *pt = ptpr->pt;
59 lws_service_do_ripe_rxflow(pt);
64 if (!lws_service_adjust_timeout(pt->context, 1, pt->tid))
66 reschedule = _lws_plat_service_forced_tsi(pt->context, pt->tid);
70 lws_pt_lock(pt, __func__);
71 us = __lws_sul_service_ripe(pt->pt_sul_owner, LWS_COUNT_PT_SUL_OWNERS,
77 lws_pt_unlock(pt);
83 if (pt->destroy_self)
84 lws_context_destroy(pt->context);
94 struct lws_context_per_thread *pt;
115 pt = &context->pt[(int)wsi->tsi];
116 ptpr = pt_to_priv_ev(pt);
141 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
142 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);
160 struct lws_context_per_thread *pt = &context->pt[tsi];
161 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);
170 ptpr->pt = pt;
175 context->pt[tsi].event_loop_foreign = 1;
188 if (!context->pt[tsi].event_loop_foreign) {
233 ptpr->hrtimer.data = pt;
245 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
246 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);
257 struct lws_context_per_thread *pt = &context->pt[tsi];
258 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);
267 if (!pt->event_loop_foreign)
280 pt_to_priv_ev(&context->pt[n])->w_sigint.context = context;
308 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
309 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);
314 pt->is_destroyed);
316 if (!ptpr->io_loop || pt->is_destroyed)
334 if (pt->destroy_self)
335 lws_context_destroy(pt->context);
341 if (pt_to_priv_ev(&context->pt[tsi])->io_loop)
342 ev_run(pt_to_priv_ev(&context->pt[tsi])->io_loop, 0);
348 struct lws_context_per_thread *pt;
355 pt = &context->pt[n];
356 ptpr = pt_to_priv_ev(pt);
360 if (pt->event_loop_foreign || !ptpr->io_loop)
408 struct lws_context_per_thread *pt = &wsi->a.context->pt[(int)wsi->tsi];
409 struct lws_pt_eventlibs_libev *ptpr = pt_to_priv_ev(pt);