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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -