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

Comparing EV/EV.pm (file contents):
Revision 1.98 by root, Sat May 31 23:17:50 2008 UTC vs.
Revision 1.99 by root, Tue Jul 8 09:37:37 2008 UTC

111default loop as this is fastest (perl-wise), best supported by other 111default loop as this is fastest (perl-wise), best supported by other
112modules (e.g. AnyEvent or Coro) and most portable event loop. 112modules (e.g. AnyEvent or Coro) and most portable event loop.
113 113
114For specific programs you can create additional event loops dynamically. 114For specific programs you can create additional event loops dynamically.
115 115
116If you want to take avdantage of kqueue (which often works properly for
117sockets only) even though the default loop doesn't enable it, you can
118I<embed> a kqueue loop into the default loop: running the default loop
119will then also service the kqueue loop to some extent. See the example in
120the section about embed watchers for an example on how to achieve that.
121
116=over 4 122=over 4
117 123
118=item $loop = new EV::loop [$flags] 124=item $loop = new EV::loop [$flags]
119 125
120Create a new event loop as per the specified flags. Please refer to the 126Create a new event loop as per the specified flags. Please refer to the
136documentation). 142documentation).
137 143
138=item $loop->loop_verify 144=item $loop->loop_verify
139 145
140Calls C<ev_verify> to make internal consistency checks (for debugging 146Calls C<ev_verify> to make internal consistency checks (for debugging
141libev) and abort the program if any data structures wree found to be 147libev) and abort the program if any data structures were found to be
142corrupted. 148corrupted.
143 149
144=item $loop = EV::default_loop [$flags] 150=item $loop = EV::default_loop [$flags]
145 151
146Return the default loop (which is a singleton object). Since this module 152Return the default loop (which is a singleton object). Since this module
147already creates the default loop with default flags, specifying flags here 153already creates the default loop with default flags, specifying flags here
148will not have any effect unless you destroy the default loop. 154will not have any effect unless you destroy the default loop first, which
155isn't supported. So in short: don't do it, and if you break it, you get to
156keep the pieces.
149 157
150=back 158=back
151 159
152 160
153=head1 BASIC INTERFACE 161=head1 BASIC INTERFACE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines