… | |
… | |
366 | the watcher isn't pending it does nothing and returns 0. |
366 | the watcher isn't pending it does nothing and returns 0. |
367 | |
367 | |
368 | $previous_state = $w->keepalive ($bool) |
368 | $previous_state = $w->keepalive ($bool) |
369 | Normally, "EV::loop" will return when there are no active watchers |
369 | Normally, "EV::loop" will return when there are no active watchers |
370 | (which is a "deadlock" because no progress can be made anymore). |
370 | (which is a "deadlock" because no progress can be made anymore). |
371 | This is convinient because it allows you to start your watchers (and |
371 | This is convenient because it allows you to start your watchers (and |
372 | your jobs), call "EV::loop" once and when it returns you know that |
372 | your jobs), call "EV::loop" once and when it returns you know that |
373 | all your jobs are finished (or they forgot to register some watchers |
373 | all your jobs are finished (or they forgot to register some watchers |
374 | for their task :). |
374 | for their task :). |
375 | |
375 | |
376 | Sometimes, however, this gets in your way, for example when the |
376 | Sometimes, however, this gets in your way, for example when the |