… | |
… | |
575 | be handled here by queueing them when their watcher gets executed. |
575 | be handled here by queueing them when their watcher gets executed. |
576 | - If ev_unloop has been called, or EVLOOP_ONESHOT or EVLOOP_NONBLOCK |
576 | - If ev_unloop has been called, or EVLOOP_ONESHOT or EVLOOP_NONBLOCK |
577 | were used, or there are no active watchers, return, otherwise |
577 | were used, or there are no active watchers, return, otherwise |
578 | continue with step *. |
578 | continue with step *. |
579 | |
579 | |
580 | Example: Queue some jobs and then loop until no events are outsanding |
580 | Example: Queue some jobs and then loop until no events are outstanding |
581 | anymore. |
581 | anymore. |
582 | |
582 | |
583 | ... queue jobs here, make sure they register event watchers as long |
583 | ... queue jobs here, make sure they register event watchers as long |
584 | ... as they still have work to do (even an idle watcher will do..) |
584 | ... as they still have work to do (even an idle watcher will do..) |
585 | ev_loop (my_loop, 0); |
585 | ev_loop (my_loop, 0); |