Permalink
Browse files

Require EV 4.00

  • Loading branch information...
1 parent 45b61c7 commit e0b5584881bdeed60af2f80da66e20f85441775c @stash committed Oct 25, 2010
Showing with 12 additions and 12 deletions.
  1. +4 −4 Feersum.xs
  2. +2 −2 Makefile.PL
  3. +1 −1 eg/hello.pl
  4. +2 −2 eg/oneshot.pl
  5. +3 −3 lib/Feersum/Runner.pm
View
@@ -634,7 +634,7 @@ prepare_cb (EV_P_ ev_prepare *w, int revents)
{
if (unlikely(revents & EV_ERROR)) {
trouble("EV error in prepare, revents=0x%08x\n", revents);
- ev_unloop(EV_A, EVUNLOOP_ALL);
+ ev_unloop(EV_A, EVBREAK_ALL);
return;
}
@@ -649,7 +649,7 @@ check_cb (EV_P_ ev_check *w, int revents)
{
if (unlikely(revents & EV_ERROR)) {
trouble("EV error in check, revents=0x%08x\n", revents);
- ev_unloop(EV_A, EVUNLOOP_ALL);
+ ev_unloop(EV_A, EVBREAK_ALL);
return;
}
trace3("check! head=%p\n", request_ready_rinq);
@@ -662,7 +662,7 @@ idle_cb (EV_P_ ev_idle *w, int revents)
{
if (unlikely(revents & EV_ERROR)) {
trouble("EV error in idle, revents=0x%08x\n", revents);
- ev_unloop(EV_A, EVUNLOOP_ALL);
+ ev_unloop(EV_A, EVBREAK_ALL);
return;
}
trace3("idle! head=%p\n", request_ready_rinq);
@@ -974,7 +974,7 @@ accept_cb (EV_P_ ev_io *w, int revents)
if (unlikely(revents & EV_ERROR)) {
trouble("EV error in accept_cb, fd=%d, revents=0x%08x\n",w->fd,revents);
- ev_unloop(EV_A, EVUNLOOP_ALL);
+ ev_unloop(EV_A, EVBREAK_ALL);
return;
}
View
@@ -53,7 +53,7 @@ WriteMakefile(ev_args(
AUTHOR => 'Jeremy Stashewsky <stash@cpan.org>',
LICENSE => 'perl',
CONFIGURE_REQUIRES => {
- 'EV' => 3.9,
+ 'EV' => 4.00,
'ExtUtils::MakeMaker' => 6.51,
},
BUILD_REQUIRES => {
@@ -65,7 +65,7 @@ WriteMakefile(ev_args(
'JSON::XS' => 2.0,
},
PREREQ_PM => {
- 'EV' => 3.9,
+ 'EV' => 4.00,
},
META_MERGE => {
recommends => {
View
@@ -33,4 +33,4 @@
print "served $counter\n";
};
-EV::loop;
+EV::run;
View
@@ -29,7 +29,7 @@
$w->write(\$n);
$w->write("\n");
$w->close();
- $evh->graceful_shutdown(sub { EV::unloop });
+ $evh->graceful_shutdown(sub { EV::break });
});
-EV::loop;
+EV::run;
View
@@ -62,7 +62,7 @@ sub run {
$self->{_quit} = EV::signal 'QUIT', sub { $self->quit };
$self->pre_fork if $self->{pre_fork};
- EV::loop;
+ EV::run;
$self->{quiet} or warn "Feersum [$$]: done\n";
}
@@ -77,7 +77,7 @@ sub fork_another {
$self->{quiet} or warn "Feersum [$$]: starting\n";
delete $self->{_kids};
delete $self->{pre_fork};
- eval { EV::loop; };
+ eval { EV::run; };
warn $@ if $@;
POSIX::exit($@ ? -1 : 0);
}
@@ -89,7 +89,7 @@ sub fork_another {
"with rstatus ".$w->rstatus."\n";
$self->{_n_kids}--;
if ($self->{_shutdown}) {
- EV::unloop(EV::UNLOOP_ALL) unless $self->{_n_kids};
+ EV::break(EV::BREAK_ALL) unless $self->{_n_kids};
return;
}
$self->fork_another();

0 comments on commit e0b5584

Please sign in to comment.