summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/ext/Thread/join.t
blob: cba2c1cf56711222cc894cf2468256a450dbe1de (plain)
1
2
3
4
5
6
7
8
9
10
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";
OpenPOWER on IntegriCloud