On Tue, Jan 10, 2017 at 7:48 PM, Gábor Csárdi <[email protected]> wrote:
> Hi All,
>
> quick question about uv_spawn and threads. If I have an event loop running
> in another thread (let's call it worker thread), can I call uv_spawn from
> the main thread and specify the worker thread's event loop?
>
> I don't see anything in the docs that says that I cannot, but it would be
> great to be sure...
>

You can't.  libuv is generally *not* thread-safe, unless stated
otherwise in a specific API function:
http://docs.libuv.org/en/v1.x/design.html#the-i-o-loop


Cheers,

-- 
/Saúl
bettercallsaghul.com

-- 
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.

Reply via email to