Lines Matching refs:pt
34 struct lws_context_per_thread *pt = &context->pt[tsi]; in _lws_plat_service_forced_tsi() local
40 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_forced_tsi()
41 if (!pt->fds[n].revents) in _lws_plat_service_forced_tsi()
44 m = lws_service_fd_tsi(context, &pt->fds[n], tsi); in _lws_plat_service_forced_tsi()
52 lws_service_do_ripe_rxflow(pt); in _lws_plat_service_forced_tsi()
61 struct lws_context_per_thread *pt; in _lws_plat_service_tsi() local
76 pt = &context->pt[tsi]; in _lws_plat_service_tsi()
78 if (!pt->service_tid_detected) { in _lws_plat_service_tsi()
84 pt->service_tid = context->vhost_list-> in _lws_plat_service_tsi()
87 pt->service_tid_detected = 1; in _lws_plat_service_tsi()
100 for (i = 0; i < pt->fds_count; ++i) { in _lws_plat_service_tsi()
101 pfd = &pt->fds[i]; in _lws_plat_service_tsi()
139 lws_pt_lock(pt, __func__); in _lws_plat_service_tsi()
141 us = __lws_sul_service_ripe(&pt->pt_sul_owner, lws_now_usecs()); in _lws_plat_service_tsi()
145 lws_pt_unlock(pt); in _lws_plat_service_tsi()
148 for (n = 0; n < (int)pt->fds_count; n++) in _lws_plat_service_tsi()
149 WSAEventSelect(pt->fds[n].fd, pt->events, in _lws_plat_service_tsi()
150 FD_READ | (!!(pt->fds[n].events & LWS_POLLOUT) * FD_WRITE) | in _lws_plat_service_tsi()
156 ev = WSAWaitForMultipleEvents(1, &pt->events, FALSE, in _lws_plat_service_tsi()
159 EnterCriticalSection(&pt->interrupt_lock); in _lws_plat_service_tsi()
160 interrupt_requested = pt->interrupt_requested; in _lws_plat_service_tsi()
161 pt->interrupt_requested = 0; in _lws_plat_service_tsi()
162 LeaveCriticalSection(&pt->interrupt_lock); in _lws_plat_service_tsi()
164 lws_broadcast(pt, LWS_CALLBACK_EVENT_WAIT_CANCELLED, in _lws_plat_service_tsi()
170 if (pt->context->tls_ops && in _lws_plat_service_tsi()
171 pt->context->tls_ops->fake_POLLIN_for_buffered) in _lws_plat_service_tsi()
172 pt->context->tls_ops->fake_POLLIN_for_buffered(pt); in _lws_plat_service_tsi()
175 for (eIdx = 0; eIdx < pt->fds_count; ++eIdx) { in _lws_plat_service_tsi()
178 if (WSAEnumNetworkEvents(pt->fds[eIdx].fd, pt->events, in _lws_plat_service_tsi()
188 pfd = &pt->fds[eIdx]; in _lws_plat_service_tsi()