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

Comparing Coro/Coro.pm (file contents):
Revision 1.79 by root, Fri Nov 3 00:56:02 2006 UTC vs.
Revision 1.81 by root, Fri Nov 24 11:36:57 2006 UTC

41 41
42our $idle; # idle coroutine 42our $idle; # idle coroutine
43our $main; # main coroutine 43our $main; # main coroutine
44our $current; # current coroutine 44our $current; # current coroutine
45 45
46our $VERSION = '2.1'; 46our $VERSION = '2.5';
47 47
48our @EXPORT = qw(async cede schedule terminate current); 48our @EXPORT = qw(async cede schedule terminate current);
49our %EXPORT_TAGS = ( 49our %EXPORT_TAGS = (
50 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], 50 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)],
51); 51);
232} 232}
233 233
234sub new { 234sub new {
235 my $class = shift; 235 my $class = shift;
236 bless { 236 bless {
237 _coro_state => (new Coro::State $_[0] && \&_newcoro, @_), 237 _coro_state => (new Coro::State \&_newcoro, @_),
238 }, $class; 238 }, $class;
239} 239}
240 240
241=item $process->ready 241=item $process->ready
242 242

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines