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
Post a Comment