… | |
… | |
290 | =item $backend = $loop->backend |
290 | =item $backend = $loop->backend |
291 | |
291 | |
292 | Returns an integer describing the backend used by libev (EV::BACKEND_SELECT |
292 | Returns an integer describing the backend used by libev (EV::BACKEND_SELECT |
293 | or EV::BACKEND_EPOLL). |
293 | or 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 | |
299 | Begin checking for events and calling callbacks. It returns when a |
299 | Begin checking for events and calling callbacks. It returns when a |
300 | callback calls EV::unloop. |
300 | callback calls EV::unloop or the flasg are nonzero (in which case the |
|
|
301 | return value is true) or when there are no active watchers which reference |
|
|
302 | the loop (keepalive is true), in which case the return value will be |
|
|
303 | false. The returnv alue can generally be interpreted as "if true, there is |
|
|
304 | more work left to do". |
301 | |
305 | |
302 | The $flags argument can be one of the following: |
306 | The $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 | |
|
|
1156 | Cleanup watchers are not supported on the Perl level, they can only be |
|
|
1157 | used via XS currently. |
1145 | |
1158 | |
1146 | |
1159 | |
1147 | =head1 PERL SIGNALS |
1160 | =head1 PERL SIGNALS |
1148 | |
1161 | |
1149 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |
1162 | While Perl signal handling (C<%SIG>) is not affected by EV, the behaviour |