Lines Matching defs:context
26 static struct lws_context *context;
120 attach_callback(struct lws_context *context, int tsi, void *opaque)
126 * back by lws from the lws event loop thread context
133 i.context = context;
151 lws_attach_with_pthreads_locking(struct lws_context *context, int tsi,
162 n = __lws_system_attach(context, tsi, cb, state, opaque, get);
191 context = lws_create_context(&info);
192 if (!context) {
200 if (lws_service(context, 0))
203 lws_context_destroy(context);
228 * The idea of the example is we're going to split the lws context and
241 * get a callback from the event loop context when the event loop
243 * may run before the lws context was created.
246 while (!context && n++ < 30)
249 if (!context) {
250 lwsl_err("%s: context didn't start\n", __func__);
259 lws_system_get_ops(context)->attach(context, 0, attach_callback,