diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-06 06:50:35 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-10-06 06:50:35 +0000 |
commit | 0a3e5ca21a6646f3abf4cafe2bcefb8a5b50aa83 (patch) | |
tree | 38e68b0c86d959ab59ac9742ef260a9512540ec8 /ext/Thread | |
parent | 949ced2d91d642c26980685f19a322c972629c10 (diff) | |
download | perl-0a3e5ca21a6646f3abf4cafe2bcefb8a5b50aa83.tar.gz |
add test for previous fix
p4raw-id: //depot/perl@1935
Diffstat (limited to 'ext/Thread')
-rw-r--r-- | ext/Thread/create.t | 11 |
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"; |