On Wed, Jun 14, 2017 at 1:00 AM, Super Twang <[email protected]> wrote: > Is there any way to tell whether your code is running in the thread, vs in > the main loop?
Not in libuv itself but you can hack something together with thread-local storage (uv_key_t and the functions that operate on it.) > Maybe I'm missing something on that end of things? Can the > main loop uv_async_send anything to itself? Yes. The event will be delivered on the next tick of the event loop. -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
