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

Comparing cvsroot/Coro/Coro.pm (file contents):
Revision 1.240 by root, Tue Nov 25 20:48:41 2008 UTC vs.
Revision 1.242 by root, Thu Dec 4 17:30:00 2008 UTC

74 74
75our $idle; # idle handler 75our $idle; # idle handler
76our $main; # main coroutine 76our $main; # main coroutine
77our $current; # current coroutine 77our $current; # current coroutine
78 78
79our $VERSION = 5.11; 79our $VERSION = 5.12;
80 80
81our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub); 81our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub);
82our %EXPORT_TAGS = ( 82our %EXPORT_TAGS = (
83 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], 83 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)],
84); 84);
352See C<async> and C<Coro::State::new> for additional info about the 352See C<async> and C<Coro::State::new> for additional info about the
353coroutine environment. 353coroutine environment.
354 354
355=cut 355=cut
356 356
357sub _terminate { 357sub _coro_run {
358 terminate &{+shift}; 358 terminate &{+shift};
359} 359}
360 360
361=item $success = $coroutine->ready 361=item $success = $coroutine->ready
362 362

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines