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

Comparing Coro/Coro.pm (file contents):
Revision 1.106 by root, Fri Jan 5 17:44:17 2007 UTC vs.
Revision 1.107 by root, Fri Jan 5 18:25:51 2007 UTC

287 287
288"Cede" to other coroutines. This function puts the current coroutine into the 288"Cede" to other coroutines. This function puts the current coroutine into the
289ready queue and calls C<schedule>, which has the effect of giving up the 289ready queue and calls C<schedule>, which has the effect of giving up the
290current "timeslice" to other coroutines of the same or higher priority. 290current "timeslice" to other coroutines of the same or higher priority.
291 291
292Returns true if at least one coroutine switch has happened.
293
292=item Coro::cede_notself 294=item Coro::cede_notself
293 295
294Works like cede, but is not exported by default and will cede to any 296Works like cede, but is not exported by default and will cede to any
295coroutine, regardless of priority, once. 297coroutine, regardless of priority, once.
298
299Returns true if at least one coroutine switch has happened.
296 300
297=item terminate [arg...] 301=item terminate [arg...]
298 302
299Terminates the current coroutine with the given status values (see L<cancel>). 303Terminates the current coroutine with the given status values (see L<cancel>).
300 304

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines