Am 28.06.2014 um 00:36 schrieb Brian White <
msc...@mscdex.net>:
> On Fri, Jun 27, 2014 at 4:49 PM, Ingwie Phoenix
> <
ingwi...@googlemail.com> 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?