ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Impl/Glib.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Impl/Glib.pm (file contents):
Revision 1.21 by root, Thu Apr 23 22:44:30 2009 UTC vs.
Revision 1.22 by root, Sat Jun 20 07:14:35 2009 UTC

37no warnings; 37no warnings;
38use strict; 38use strict;
39 39
40use Glib (); 40use Glib ();
41 41
42our $maincontext = Glib::MainContext->default; 42our $mainloop = Glib::MainContext->default;
43 43
44sub io { 44sub io {
45 my ($class, %arg) = @_; 45 my ($class, %arg) = @_;
46 46
47 my $cb = $arg{cb}; 47 my $cb = $arg{cb};
84sub DESTROY { 84sub DESTROY {
85 remove Glib::Source $${$_[0]}; 85 remove Glib::Source $${$_[0]};
86} 86}
87 87
88sub one_event { 88sub one_event {
89 $maincontext->iteration (1); 89 $mainloop->iteration (1);
90}
91
92sub loop {
93 $mainloop->run;
90} 94}
91 95
921; 961;
93 97
94=head1 SEE ALSO 98=head1 SEE ALSO

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines