… | … | ||
---|---|---|---|
233 | by calling the ready method. | 233 | by calling the ready method. |
234 | 234 | ||
235 | =cut | 235 | =cut |
236 | 236 | ||
237 | sub _new_coro { | 237 | sub _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 | ||
244 | sub new { | 241 | sub new { |
245 | my $class = shift; | 242 | my $class = shift; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |