On Wed, Dec 14, 2011 at 2:10 AM, Marios Titas <[email protected]> wrote: > > I am trying to use priorities in order to control the order of > invocation of the callbacks but it doesn't seem to work. For example > consider the following perl program: > > use EV; > my $pid = fork or exec qw(sleep 1); > my $w1; $w1 = EV::child $pid, 0, sub{undef $w1; print "1\n"}; > my $w2; $w2 = EV::child $pid, 0, sub{undef $w2; print "1\n"}; > $w2->priority(1); >
The ev.pod documentation notes that: "Due to some design glitches inside libev, child watchers will always be handled at maximum priority (their priority is set to EV_MAXPRI by libev)" -- Brandon
_______________________________________________ libev mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
