summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2002-05-07 21:15:34 +0000
committerArtur Bergman <sky@nanisky.com>2002-05-07 21:15:34 +0000
commitdcb6ccbc8d5cd83e6b5ecf9c742ed72c880eab81 (patch)
treeabb16cf21dbc105c3a26a502c9b91e3b4b7807c0 /ext
parent54934ab530e513595c846fb39ab2a9772d061b00 (diff)
downloadperl-dcb6ccbc8d5cd83e6b5ecf9c742ed72c880eab81.tar.gz
Add support for async.
p4raw-id: //depot/perl@16452
Diffstat (limited to 'ext')
-rwxr-xr-xext/threads/threads.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/threads/threads.pm b/ext/threads/threads.pm
index a8a340f1f6..f76d55bbb5 100755
--- a/ext/threads/threads.pm
+++ b/ext/threads/threads.pm
@@ -50,7 +50,7 @@ our %EXPORT_TAGS = ( all => [qw()]);
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw(
-
+async
);
our $VERSION = '0.99';
@@ -60,6 +60,11 @@ sub equal {
return 0;
}
+sub async (&;@) {
+ my $cref = shift;
+ return threads->new($cref,@_);
+}
+
$threads::threads = 1;
bootstrap threads $VERSION;