Lines Matching defs:loop
164 * This does not actually stop the event loop. The reason is we have to pass
165 * libuv handle closures through its event loop. So this tries to close all
230 * thread context the loop is associated with, we must
247 // lwsl_err("%s: handle %p still alive on loop\n", __func__, handle);
281 * So we believe nothing of ours left on the loop. Let's sanity
282 * check it to count what's still on the loop
291 * Stop the loop so we can get out of here.
393 /* call destroy2 if internal loop */
550 /* w->context is set after the loop is initialized */
553 lwsl_wsi_info(wsi, "no io loop yet");
665 lwsl_warn("%s: stopping event loop\n", __func__);
722 uv_loop_t *loop = (uv_loop_t *)_loop;
727 if (!loop) {
728 loop = lws_malloc(sizeof(*loop), "libuv loop");
729 if (!loop) {
734 uv_loop_init(loop);
741 lwsl_cx_notice(context, " Using foreign event loop...");
745 ptpriv->io_loop = loop;
746 uv_idle_init(loop, &ptpriv->idle);
758 uv_signal_init(loop, &ptpriv->signals[n]);
773 * We have to do it here because the uv loop(s) are not
899 * We can't judge it until we get the first event from the loop
904 * This is the same thread that gave us the first event on this loop?
941 "libuv event loop",