diff options
Diffstat (limited to 'contrib/perl5/ext/Thread/join.t')
-rw-r--r-- | contrib/perl5/ext/Thread/join.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/perl5/ext/Thread/join.t b/contrib/perl5/ext/Thread/join.t new file mode 100644 index 0000000..cba2c1c --- /dev/null +++ b/contrib/perl5/ext/Thread/join.t @@ -0,0 +1,11 @@ +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); +print "Joining with $t\n"; +@results = $t->join(); +print "Joining returned ", scalar(@results), " values: @results\n"; |