libuv - Is it possible to wake uv_loop from a different thread? -


i started playing libuv , i'm liking it, can't seem find way signal loop thread different thread. want like:

thread a: blocks on uv_run(uv_default_loop(), uv_default_run); let's listens on socket.

thread b: wakes thread sleeps on uv_default_loop() means other writing on socket, uv_loop_signal() ?

would know if possible?

oh silly me. here is:

uv_async_t event; uv_async_init(uv_default_loop(), &event,eventcb); uv_async_send(&event); 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -