I just found this which is the same suggestion: 
https://github.com/joyent/libuv/issues/1246.

+1 uv_pull !!!

On Tuesday, July 8, 2014 12:00:06 AM UTC+2, [email protected] wrote:
>
> Hi,
> I would like to embed libuv in another runloop. This would be easier if 
> uv_run supported a blocking mode (e.g. UV_RUN_NONE) that is otherwise a 
> noop. Basically I would like to be able to block until the next event but 
> don't acually do anything with the event (e.g. don't run any callbacks). 
> Then libuv can be embedded like:
>
> In Main Event Loop:
>   If got signal from bg thread {
>     uv_run(loop, UV_RUN_NOWAIT);
>     signal bg thread to continue
>   }
>
> In BG thread:
>   while (uv_run(loop, UV_RUN_NONE) != 0) {
>     send signal to main event loop thread
>     wait for signal from main loop thread
>   }
>
> Would something like this work? Is it feasible to implement something like 
> this for all platforms supported by libuv? Then uv_backend_fd() could be 
> avoided which isn't cross platform anyway.
>
> Thanks,
>

-- 
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