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