… | |
… | |
79 | package EV; |
79 | package EV; |
80 | |
80 | |
81 | use common::sense; |
81 | use common::sense; |
82 | |
82 | |
83 | BEGIN { |
83 | BEGIN { |
84 | our $VERSION = '3.7001'; |
84 | our $VERSION = '3.9'; |
85 | use XSLoader; |
85 | use XSLoader; |
86 | XSLoader::load "EV", $VERSION; |
86 | XSLoader::load "EV", $VERSION; |
87 | } |
87 | } |
88 | |
88 | |
89 | @EV::IO::ISA = |
89 | @EV::IO::ISA = |
… | |
… | |
456 | |
456 | |
457 | =item $previous_state = $w->keepalive ($bool) |
457 | =item $previous_state = $w->keepalive ($bool) |
458 | |
458 | |
459 | Normally, C<EV::loop> will return when there are no active watchers |
459 | Normally, C<EV::loop> will return when there are no active watchers |
460 | (which is a "deadlock" because no progress can be made anymore). This is |
460 | (which is a "deadlock" because no progress can be made anymore). This is |
461 | convinient because it allows you to start your watchers (and your jobs), |
461 | convenient because it allows you to start your watchers (and your jobs), |
462 | call C<EV::loop> once and when it returns you know that all your jobs are |
462 | call C<EV::loop> once and when it returns you know that all your jobs are |
463 | finished (or they forgot to register some watchers for their task :). |
463 | finished (or they forgot to register some watchers for their task :). |
464 | |
464 | |
465 | Sometimes, however, this gets in your way, for example when the module |
465 | Sometimes, however, this gets in your way, for example when the module |
466 | that calls C<EV::loop> (usually the main program) is not the same module |
466 | that calls C<EV::loop> (usually the main program) is not the same module |