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

Comparing AnyEvent/lib/AnyEvent/Impl/Glib.pm (file contents):
Revision 1.8 by root, Fri Nov 24 14:50:12 2006 UTC vs.
Revision 1.9 by root, Mon Dec 11 01:16:09 2006 UTC

45 # need to undef $cb because we hold references to it 45 # need to undef $cb because we hold references to it
46 $self->{cb} = undef; 46 $self->{cb} = undef;
47 %$self = (); 47 %$self = ();
48} 48}
49 49
50sub condvar {
51 my $class = shift;
52
53 bless \my $flag, $class
54}
55
56sub broadcast {
57 ${$_[0]}++;
58}
59
60sub wait {
61 $maincontext->iteration (1) while !${$_[0]};
62}
63
64sub one_event { 50sub one_event {
65 $maincontext->iteration (1); 51 $maincontext->iteration (1);
66} 52}
67 53
681 541

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines