summaryrefslogtreecommitdiff
path: root/ext/Thread
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-06 06:50:35 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-06 06:50:35 +0000
commit0a3e5ca21a6646f3abf4cafe2bcefb8a5b50aa83 (patch)
tree38e68b0c86d959ab59ac9742ef260a9512540ec8 /ext/Thread
parent949ced2d91d642c26980685f19a322c972629c10 (diff)
downloadperl-0a3e5ca21a6646f3abf4cafe2bcefb8a5b50aa83.tar.gz
add test for previous fix
p4raw-id: //depot/perl@1935
Diffstat (limited to 'ext/Thread')
-rw-r--r--ext/Thread/create.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/Thread/create.t b/ext/Thread/create.t
index 7d6d189e92..df8fc77ba3 100644
--- a/ext/Thread/create.t
+++ b/ext/Thread/create.t
@@ -1,4 +1,7 @@
-use Thread;
+use Thread 'async';
+use Config;
+use Tie::Hash;
+
sub start_here {
my $i;
print "In start_here with args: @_\n";
@@ -8,6 +11,12 @@ sub start_here {
}
}
+async {
+ tie my(%h), 'Tie::StdHash';
+ %h = %Config;
+ print "running on $h{archname}\n";
+};
+
print "Starting new thread now\n";
$t = new Thread \&start_here, qw(foo bar baz);
print "Started thread $t\n";