2014-07-07 23:05 GMT+02:00 Haneef Mubarak <[email protected]>:
> Is uv_stop() thread safe? Namely, if I have thread A running a loop X via
> uv_run(loop_x, UV_RUN_DEFAULT), can I (safely) have thread A's loop stopped
> by having thread B run uv_stop(loop_x)?

Most probably it is not thread-safe. You should run a uv_async_t
handler in the loop of thread A and then call uv_async() from thread
B. The callback uv_async_cb would then call uv_stop() from the own
thread A.


-- 
Iñaki Baz Castillo
<[email protected]>

-- 
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 http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to