Well, it still works for some cases. You could use pipes or other fds for
other purposes.

Anyway, you wasn't certain about what exactly you want to do, most likely
it could be solved
by reusing existing stuff.


On Sun, May 11, 2014 at 12:32 AM, Martin Sustrik
<[email protected]>wrote:

> You mean POSIX signals?
>
> If so, are you aware what mess ensues when you combine signals with
> threads? Also, what about windows?
>
> Martin
>
>
> On Saturday, May 10, 2014 7:57:05 PM UTC+2, Fedor Indutny wrote:
>>
>> Yep, this is called signals.
>>
>> Cheers.
>>
>>
>> On Sat, May 10, 2014 at 9:26 PM, Iñaki Baz Castillo <[email protected]>wrote:
>>
>>> I don't understand. Which kind of UV event you want?
>>> uv_on_shutdown_button_pressed? That makes no sense. libuv already lets
>>> you manage signals (in case the "user event" you mean produces a
>>> signal).
>>>
>>> 2014-05-10 16:07 GMT+02:00 Martin Sustrik <[email protected]>:
>>> > Hi,
>>> >
>>> > I start the event loop, it does what it should, everything works OK.
>>> >
>>> > Now I want to pass some user events to the event loop. E.g. "User
>>> pressed
>>> > shutdown button and I want the event loop to terminate", "I want to
>>> get the
>>> > processing results accumulated so far" or similar.
>>> >
>>> > I can create an eventfd, register a callback for it, then I can signal
>>> the
>>> > eventfd and wait till the callback is invoked.
>>> >
>>> > However, it feels like libuv should have a canonical way of doing
>>> that. Does
>>> > it? And if so, how?
>>> >
>>> > Martin
>>> >
>>> > --
>>> > 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.
>>>
>>>
>>>
>>> --
>>> Iñaki Baz Castillo
>>> <[email protected]>
>>>
>>> --
>>> 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.
>>>
>>
>>

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