projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add support for async.
[p5sagit/p5-mst-13.2.git]
/
ext
/
threads
/
threads.pm
diff --git
a/ext/threads/threads.pm
b/ext/threads/threads.pm
index
a8a340f
..
f76d55b
100755
(executable)
--- 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;