--- Coro/Coro.pm 2003/05/27 01:15:26 1.53 +++ Coro/Coro.pm 2003/11/15 03:53:10 1.56 @@ -32,13 +32,15 @@ package Coro; -no warnings qw(uninitialized); +BEGIN { eval { require warnings } && warnings->unimport ("uninitialized") } use Coro::State; +use vars qw($idle $main $current); + use base Exporter; -$VERSION = 0.7; +$VERSION = "0.9"; @EXPORT = qw(async cede schedule terminate current); %EXPORT_TAGS = ( @@ -85,7 +87,7 @@ =cut -our $main = new Coro; +$main = new Coro; =item $current (or as function: current) @@ -98,7 +100,7 @@ $main->{specific} = $current->{specific}; } -our $current = $main; +$current = $main; sub current() { $current } @@ -110,7 +112,7 @@ =cut # should be done using priorities :( -our $idle = new Coro sub { +$idle = new Coro sub { print STDERR "FATAL: deadlock detected\n"; exit(51); }; @@ -338,8 +340,8 @@ =head1 SEE ALSO L, L, L, L, -L, L, L, L, -L, L. +L, L, L, L, +L, Handle>, L. =head1 AUTHOR