Lines Matching defs:context
28 lws_plat_service(struct lws_context *context, int timeout_ms)
30 int n = _lws_plat_service_tsi(context, timeout_ms, 0);
41 _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
50 if (!context)
53 pt = &context->pt[tsi];
59 if (m > context->time_last_state_dump) {
60 context->time_last_state_dump = m;
66 if ((unsigned int)n != context->last_free_heap) {
67 if ((unsigned int)n > context->last_free_heap)
71 context->last_free_heap));
76 context->last_free_heap -
78 context->last_free_heap = n;
90 if (!pt->service_tid_detected && context->vhost_list) {
93 lws_fakewsi_prep_plwsa_ctx(context);
95 pt->service_tid = context->vhost_list->protocols[0].callback(
108 if (lws_service_adjust_timeout(context, 1, tsi)) {
184 if (pt->context->tls_ops &&
185 pt->context->tls_ops->fake_POLLIN_for_buffered)
186 m |= pt->context->tls_ops->fake_POLLIN_for_buffered(pt);
193 m = lws_service_flag_pending(context, tsi);
203 m = lws_service_fd_tsi(context, &pt->fds[n], tsi);