diff options
Diffstat (limited to 'ext/Thread/join.t')
-rw-r--r-- | ext/Thread/join.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/Thread/join.t b/ext/Thread/join.t new file mode 100644 index 0000000000..640256a9b3 --- /dev/null +++ b/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 @results\n"; |