Re: [nodejs] (C++) Add function into nodejs even tloop.

2014-02-23 Thread Fedor Indutny
I don't think that you need to run separate loop for `uv_idle_t`. Just call `uv_idle_init(uv_default_loop(), idle)` and `uv_idle_start(idle, cb)`. Make sure to allocate `idle` in heap (not on stack) with malloc/new or whatever. On Sun, Feb 23, 2014 at 2:35 AM, Kevin Ingwersen wrote: > Hey everyo

[nodejs] (C++) Add function into nodejs even tloop.

2014-02-22 Thread Kevin Ingwersen
Hey everyone. I need an expert for this question actually. So if you can, please poke a nodejs dev ovo... So, I am sitting here, with the need to ingegrate a thirdparty library, which usually runs its own event loop. It however offers the possibility to just run one function to let its message