ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-Glib/Glib.pm
(Generate patch)

Comparing EV-Glib/Glib.pm (file contents):
Revision 1.3 by root, Sat Dec 8 04:16:07 2007 UTC vs.
Revision 1.4 by root, Sat Dec 8 15:11:49 2007 UTC

37EV, so normally nothing else is required. 37EV, so normally nothing else is required.
38 38
39=item * There will be no g_main_loop or gtk_main loop available. 39=item * There will be no g_main_loop or gtk_main loop available.
40 40
41The EV event loop is not the gtk+ main loop. That means that things like 41The EV event loop is not the gtk+ main loop. That means that things like
42C<gtk_main_quit> will not work at all. 42C<gtk_main_quit> will not work at all, as there is no glib mainloop. You
43I<have> to use EV's equivalents, i.e. C<EV::unloop>.
43 44
44=item * You cannot call any glib loop functions while its context is active. 45=item * You cannot call any glib loop functions while its context is active.
45 46
46This module uses a prepare watcher at lowest priority to dispatch glib 47This module uses a prepare watcher at lowest priority to dispatch glib
47events and activate the main context. The context will be deactivates in a 48events and activate the main context. The context will be deactivates in a
49 50
50That means that glib events will be dispatched with lowest priority, and 51That means that glib events will be dispatched with lowest priority, and
51that you cannot call any glib main functions (or functions calling it) on 52that you cannot call any glib main functions (or functions calling it) on
52the default mainloop in highest-priority watchers and in lowest-priority 53the default mainloop in highest-priority watchers and in lowest-priority
53prepare watchers. 54prepare watchers.
55
56=item * EV::Glib watchers will (currently) keep the mainloop alive.
57
58That means that, after loading this module, C<EV::loop> calls will never
59return unless you call C<EV::unloop> explicitly. Future versions might fix
60this problem so that Glib keeps the EV loop alive only when it has active
61events waiting.
54 62
55=cut 63=cut
56 64
57package EV::Glib; 65package EV::Glib;
58 66

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines