summaryrefslogtreecommitdiff
path: root/ext/Thread/join.t
blob: 640256a9b3c85f9899cc605b0eb6ec9e2eb7f0f8 (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 @results\n";