Lines Matching refs:pt
48 struct lws_context_per_thread *pt;
65 struct lws_context_per_thread *pt = lws_container_of(sul,
71 lws_dll2_get_head(&pt->seq_owner)) {
81 __lws_sul_insert_us(&pt->pt_sul_owner[LWSSULLI_MISS_IF_SUSPENDED],
82 &pt->sul_seq_heartbeat, LWS_US_PER_SEC);
86 lws_seq_pt_init(struct lws_context_per_thread *pt)
88 pt->sul_seq_heartbeat.cb = lws_sul_seq_heartbeat_cb;
91 __lws_sul_insert_us(&pt->pt_sul_owner[LWSSULLI_MISS_IF_SUSPENDED],
92 &pt->sul_seq_heartbeat, LWS_US_PER_SEC);
100 struct lws_context_per_thread *pt = &i->context->pt[i->tsi];
107 seq->pt = pt;
114 /* add the sequencer to the pt */
116 lws_pt_lock(pt, __func__); /* ---------------------------------- pt { */
118 lws_dll2_add_tail(&seq->seq_list, &pt->seq_owner);
120 lws_pt_unlock(pt); /* } pt ------------------------------------------ */
158 lws_pt_lock(seq->pt, __func__); /* -------------------------- pt { */
166 lws_pt_unlock(seq->pt); /* } pt ---------------------------------- */
173 lws_seq_destroy_all_on_pt(struct lws_context_per_thread *pt)
176 pt->seq_owner.head) {
205 lws_pt_lock(seq->pt, __func__); /* ----------------------------- pt { */
210 lws_pt_unlock(seq->pt); /* } pt ------------------------------------- */
237 lws_pt_lock(seq->pt, __func__); /* ----------------------------- pt { */
247 __lws_sul_insert_us(&seq->pt->pt_sul_owner[seq->wakesuspend],
250 lws_pt_unlock(seq->pt); /* } pt ------------------------------------- */
273 lws_pt_lock(seq->pt, __func__); /* ----------------------------- pt { */
285 lws_pt_unlock(seq->pt); /* } pt ------------------------------------- */
306 __lws_sul_insert_us(&seq->pt->pt_sul_owner[seq->wakesuspend],
333 return seq->pt->context;