diff options
Diffstat (limited to 'contrib/perl5/ext/Thread/join2.t')
-rw-r--r-- | contrib/perl5/ext/Thread/join2.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/perl5/ext/Thread/join2.t b/contrib/perl5/ext/Thread/join2.t new file mode 100644 index 000000000000..99b43a54dc54 --- /dev/null +++ b/contrib/perl5/ext/Thread/join2.t @@ -0,0 +1,12 @@ +use Thread; +sub foo { + print "In foo with args: @_\n"; + return (7, 8, 9); +} + +print "Starting thread\n"; +$t = new Thread \&foo, qw(foo bar baz); +sleep 2; +print "Joining with $t\n"; +@results = $t->join(); +print "Joining returned @results\n"; |