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

Comparing Coro/Coro.pm (file contents):
Revision 1.86 by root, Sat Nov 25 01:14:11 2006 UTC vs.
Revision 1.87 by root, Sun Nov 26 02:16:19 2006 UTC

233by calling the ready method. 233by calling the ready method.
234 234
235=cut 235=cut
236 236
237sub _new_coro { 237sub _new_coro {
238 $current->_clear_idle_sp; # (re-)set the idle sp on the following cede
239 _set_cede_self; # ensures that cede cede's us first
240 cede;
241 terminate &{+shift}; 238 terminate &{+shift};
242} 239}
243 240
244sub new { 241sub new {
245 my $class = shift; 242 my $class = shift;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines