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

Comparing Coro/Event/Event.pm (file contents):
Revision 1.94 by root, Fri Dec 11 18:32:24 2009 UTC vs.
Revision 1.95 by root, Sat Dec 12 01:30:27 2009 UTC

190} 190}
191 191
192# very inefficient 192# very inefficient
193our $IDLE = new Coro sub { 193our $IDLE = new Coro sub {
194 while () { 194 while () {
195 &Event::one_event; 195 Event::one_event;
196 &Coro::schedule; 196 Coro::schedule if Coro::nready;
197 } 197 }
198}; 198};
199$IDLE->{desc} = "[Event idle thread]"; 199$IDLE->{desc} = "[Event idle thread]";
200 200
201$Coro::idle = $IDLE; 201$Coro::idle = $IDLE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines