IO::Async::Set::GMainLoop - a class that maintains a set of IO::Async::Notifier objects by using the Glib::MainLoop object.
IO::Async::Set::GMainLoop
IO::Async::Notifier
Glib::MainLoop
use IO::Async::Set::GMainLoop; my $set = IO::Async::Set::GMainLoop->new(); $set->add( ... ); ... # Rest of GLib/Gtk program that uses GLib::MainContext
This subclass of IO::Async::Notifier uses the Glib::MainLoop to perform read-ready and write-ready tests.
The appropriate Glib::IO sources are added or removed from the Glib::MainLoop when notifiers are added or removed from the set, or when they change their want_writeready status. The callbacks are called automatically by Glib itself; no special methods on this set object are required.
Glib::IO
want_writeready
This function returns a new instance of a IO::Async::Set::GMainLoop object. It takes no special arguments.
There are no special methods in this subclass, other than those provided by the IO::Async::Set base class.
IO::Async::Set
Glib - Perl wrappers for the GLib utility and Object libraries
Gtk2 - Perl interface to the 2.x series of the Gimp Toolkit library
Paul Evans <leonerd@leonerd.org.uk>
To install IO::Async::Set, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Async::Set
CPAN shell
perl -MCPAN -e shell install IO::Async::Set
For more information on module installation, please visit the detailed CPAN module installation guide.