ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-MP/MP/Node.pm
(Generate patch)

Comparing cvsroot/AnyEvent-MP/MP/Node.pm (file contents):
Revision 1.43 by root, Thu Oct 1 16:11:05 2009 UTC vs.
Revision 1.44 by root, Fri Oct 2 20:40:10 2009 UTC

259 or $AnyEvent::MP::Kernel::WARN->(8, "unmonitored local port $port died with reason: @reason"); 259 or $AnyEvent::MP::Kernel::WARN->(8, "unmonitored local port $port died with reason: @reason");
260 260
261 $_->(@reason) for values %$mon; 261 $_->(@reason) for values %$mon;
262 }; 262 };
263 263
264 $DELAY_W ? push @DELAY, $delay_cb : &$delay_cb; 264 # we _always_ delay kil's, to avoid calling mon callbacks
265 # from anything but the event loop context.
266 $DELAY = 1;
267 push @DELAY, $delay_cb;
265} 268}
266 269
267sub monitor { 270sub monitor {
268 my ($self, $portid, $cb) = @_; 271 my ($self, $portid, $cb) = @_;
269 272

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines