Re: Signals & MacOS



On 2 April 2015 at 01:17, Brian Manning <cpan xaoc org> wrote:
Maybe select/IO::Select on your file descriptors then, to see if you
get the same behavior?

Thanks for the tip, but my reading of select/IO::Select is that they
always block, whereas the nice thing about Glib::IO->add_watch() is
that it sets up a callback.

To use a blocking watch in a GUI, I would have to put it in a thread,
and presumably the only way of then killing the blocking watch would
be to kill the thread.

Is no one using Glib::IO->add_watch() on a Mac?

Regards

Jeff


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]