Am 28.06.2014 um 00:36 schrieb Brian White <[email protected]>: > On Fri, Jun 27, 2014 at 4:49 PM, Ingwie Phoenix > <[email protected]> wrote: >> Do you happen to know the async type in uv? I am sure I have seen something >> like uv_async_t...I just cant memorize it. > > It's documented in uv.h[1] and there is also a test[2] you can use as > example usage. > > [1] > https://github.com/joyent/libuv/blob/546fa7d508ba741c106d0161a31e9f8d257a5d56/include/uv.h#L1347-L1374 > [2] https://github.com/joyent/libuv/blob/master/test/test-async.c
Wow, thats a hardone. The test is not documented, so its hard to read/understand what it is doing, as it is using both - a thread and async object. >From the header, I only see that I have to asign a calback to an async object >when initializing. So...I dont perfectly understand how this is supposed to >work. Do I need to make a thread first, then an async object, or how is this supposed to go? Especially, how do I then send soemthing to the event loop? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/8C311334-BC4A-44AD-A4B9-FE9793BABEB0%40googlemail.com. For more options, visit https://groups.google.com/d/optout.
