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

Comparing EV/EV.pm (file contents):
Revision 1.137 by root, Sat Feb 4 20:12:17 2012 UTC vs.
Revision 1.138 by root, Sun May 6 16:30:27 2012 UTC

290=item $backend = $loop->backend 290=item $backend = $loop->backend
291 291
292Returns an integer describing the backend used by libev (EV::BACKEND_SELECT 292Returns an integer describing the backend used by libev (EV::BACKEND_SELECT
293or EV::BACKEND_EPOLL). 293or EV::BACKEND_EPOLL).
294 294
295=item EV::run [$flags] 295=item $active = EV::run [$flags]
296 296
297=item $loop->run ([$flags]) 297=item $active = $loop->run ([$flags])
298 298
299Begin checking for events and calling callbacks. It returns when a 299Begin checking for events and calling callbacks. It returns when a
300callback calls EV::unloop. 300callback calls EV::unloop or the flasg are nonzero (in which case the
301return value is true) or when there are no active watchers which reference
302the loop (keepalive is true), in which case the return value will be
303false. The returnv alue can generally be interpreted as "if true, there is
304more work left to do".
301 305
302The $flags argument can be one of the following: 306The $flags argument can be one of the following:
303 307
304 0 as above 308 0 as above
305 EV::RUN_ONCE block at most once (wait, but do not loop) 309 EV::RUN_ONCE block at most once (wait, but do not loop)
1135 1139
1136=item $w = EV::async $callback 1140=item $w = EV::async $callback
1137 1141
1138=item $w = EV::async_ns $callback 1142=item $w = EV::async_ns $callback
1139 1143
1144=item $w = $loop->async ($callback)
1145
1146=item $w = $loop->async_ns ($callback)
1147
1140=item $w->send 1148=item $w->send
1141 1149
1142=item $bool = $w->async_pending 1150=item $bool = $w->async_pending
1143 1151
1144=back 1152=back
1153
1154=head3 CLEANUP WATCHERS - how to clean up when the event loop goes away
1155
1156Cleanup watchers are not supported on the Perl level, they can only be
1157used via XS currently.
1145 1158
1146 1159
1147=head1 PERL SIGNALS 1160=head1 PERL SIGNALS
1148 1161
1149While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour 1162While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines