Lines Matching defs:context
45 * Requires context + vhost lock
53 if (fd < 0 || fd >= (int)ctx->vh->context->fd_limit_per_thread) {
55 (int)ctx->vh->context->fd_limit_per_thread);
61 wsi = wsi_from_fd(ctx->vh->context, fd);
71 lws_context_assert_lock_held(wsi->a.context);
74 /* requires context lock */
75 wsi = __lws_wsi_create_with_role(ctx->vh->context, ctx->tsi, NULL,
91 __lws_lc_tag(ctx->vh->context, &ctx->vh->context->lcg[LWSLCG_WSI],
95 if (__insert_wsi_socket_into_fds(ctx->vh->context, wsi)) {
114 lws_context_assert_lock_held(wsi->a.context);
152 struct lws_context_per_thread *pt = &ctx->vh->context->pt[ctx->tsi];
157 lws_context_lock(pt->context, __func__);
163 lws_context_unlock(pt->context);
197 lws_context_unlock(pt->context);
234 struct lws_context_per_thread *pt = &ctx->vh->context->pt[ctx->tsi];
239 lws_context_lock(pt->context, __func__);
269 lws_context_unlock(pt->context);
301 lws_sul_schedule(pt->context, pt->tid, &pt->dbus.sul,
309 struct lws_context_per_thread *pt = &ctx->vh->context->pt[ctx->tsi];
335 lws_sul_schedule(pt->context, pt->tid, &pt->dbus.sul,
347 struct lws_context_per_thread *pt = &ctx->vh->context->pt[ctx->tsi];
521 rops_pt_init_destroy_dbus(struct lws_context *context,