… | |
… | |
959 | - Queue all expired timers. |
959 | - Queue all expired timers. |
960 | - Queue all expired periodics. |
960 | - Queue all expired periodics. |
961 | - Queue all idle watchers with priority higher than that of pending events. |
961 | - Queue all idle watchers with priority higher than that of pending events. |
962 | - Queue all check watchers. |
962 | - Queue all check watchers. |
963 | - Call all queued watchers in reverse order (i.e. check watchers first). |
963 | - Call all queued watchers in reverse order (i.e. check watchers first). |
964 | Signals and child watchers are implemented as I/O watchers, and will |
964 | Signals, async and child watchers are implemented as I/O watchers, and |
965 | be handled here by queueing them when their watcher gets executed. |
965 | will be handled here by queueing them when their watcher gets executed. |
966 | - If ev_break has been called, or EVRUN_ONCE or EVRUN_NOWAIT |
966 | - If ev_break has been called, or EVRUN_ONCE or EVRUN_NOWAIT |
967 | were used, or there are no active watchers, goto FINISH, otherwise |
967 | were used, or there are no active watchers, goto FINISH, otherwise |
968 | continue with step LOOP. |
968 | continue with step LOOP. |
969 | FINISH: |
969 | FINISH: |
970 | - Reset the ev_break status iff it was EVBREAK_ONE. |
970 | - Reset the ev_break status iff it was EVBREAK_ONE. |
… | |
… | |
4268 | |
4268 | |
4269 | For C<ev::embed> watchers this method is called C<set_embed>, to avoid |
4269 | For C<ev::embed> watchers this method is called C<set_embed>, to avoid |
4270 | clashing with the C<set (loop)> method. |
4270 | clashing with the C<set (loop)> method. |
4271 | |
4271 | |
4272 | For C<ev::io> watchers there is an additional C<set> method that acepts a |
4272 | For C<ev::io> watchers there is an additional C<set> method that acepts a |
4273 | new event mask only, and internally calls C<ev_io_modfify>. |
4273 | new event mask only, and internally calls C<ev_io_modify>. |
4274 | |
4274 | |
4275 | =item w->start () |
4275 | =item w->start () |
4276 | |
4276 | |
4277 | Starts the watcher. Note that there is no C<loop> argument, as the |
4277 | Starts the watcher. Note that there is no C<loop> argument, as the |
4278 | constructor already stores the event loop. |
4278 | constructor already stores the event loop. |