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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -