ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.114 by root, Sat May 10 21:12:49 2008 UTC vs.
Revision 1.115 by root, Sat May 10 21:47:28 2008 UTC

899 899
900package AnyEvent::Base::CondVar; 900package AnyEvent::Base::CondVar;
901 901
902# wake up the waiter 902# wake up the waiter
903sub _send { 903sub _send {
904 &{ $_[0]{_ae_cb} } if $_[0]{_ae_cb}; 904 &{ delete $_[0]{_ae_cb} } if $_[0]{_ae_cb};
905} 905}
906 906
907sub send { 907sub send {
908 my $cv = shift;
908 $_[0]{_ae_sent} = [@_]; 909 $cv->{_ae_sent} = [@_];
909 $_[0]->_send; 910 $cv->_send;
910} 911}
911 912
912sub croak { 913sub croak {
913 $_[0]{_ae_croak} = $_[0]; 914 $_[0]{_ae_croak} = $_[1];
914 $_[0]->send; 915 $_[0]->send;
915} 916}
916 917
917sub ready { 918sub ready {
918 $_[0]{_ae_sent} 919 $_[0]{_ae_sent}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines