Hi,

For some testing environment (in Nodejs but I guess that doesn't matter), 
where I wanted to force sync execution, I did a small hack where I 
basically try to run a loop with `uv_run(uv_default_loop())` in some code 
which was run itself from inside uv_run (via a callback).

More specifically, if you are interested for the details: Nodejs runs a 
very simple main loop where it basically just calls uv_run (see here: 
https://github.com/joyent/node/blob/master/src/node.cc). In uv_run, 
callbacks get called which call JavaScript code. In that JavaScript code, I 
use the NodeJS uvrun module (https://github.com/albertz/uvrun) which 
exposes the uv_run function to JS. And I call that uv_run to have my own 
inner loop.

I have some problems with that and I wonder whether the problem might be 
because I call uv_run recursively. It could also be that I run it on the 
wrong event loop but I haven't checked on that one yet. Sadly, NodeJS 
doesn't have any way to expose its event loop, so I'm using 
uv_default_loop().

Regards,
Albert

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