• Home
  • Raw
  • Download

Lines Matching refs:pt

86 	struct lws_context_per_thread *pt;  in _lws_plat_service_tsi()  local
95 pt = &context->pt[tsi]; in _lws_plat_service_tsi()
102 if (!pt->service_tid_detected) { in _lws_plat_service_tsi()
108 pt->service_tid = context->vhost_list->protocols[0].callback( in _lws_plat_service_tsi()
110 pt->service_tid_detected = 1; in _lws_plat_service_tsi()
122 lws_pt_lock(pt, __func__); in _lws_plat_service_tsi()
124 us = __lws_sul_service_ripe(&pt->pt_sul_owner, lws_now_usecs()); in _lws_plat_service_tsi()
128 lws_pt_unlock(pt); in _lws_plat_service_tsi()
131 n = poll(pt->fds, pt->fds_count, timeout_us / LWS_US_PER_MS); in _lws_plat_service_tsi()
135 if (pt->context->tls_ops && in _lws_plat_service_tsi()
136 pt->context->tls_ops->fake_POLLIN_for_buffered) in _lws_plat_service_tsi()
137 m = pt->context->tls_ops->fake_POLLIN_for_buffered(pt); in _lws_plat_service_tsi()
156 for (n = 0; n < (int)pt->fds_count && c; n++) { in _lws_plat_service_tsi()
157 if (!pt->fds[n].revents) in _lws_plat_service_tsi()
162 if (pt->fds[n].fd == pt->dummy_pipe_fds[0]) { in _lws_plat_service_tsi()
163 if (read(pt->fds[n].fd, &buf, 1) != 1) in _lws_plat_service_tsi()
168 m = lws_service_fd_tsi(context, &pt->fds[n], tsi); in _lws_plat_service_tsi()
215 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi]; in lws_plat_insert_socket_into_fds() local
217 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
224 struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi]; in lws_plat_delete_socket_from_fds() local
226 pt->fds_count--; in lws_plat_delete_socket_from_fds()