2 eval { require Config; import Config };
4 print "1..0 # Skip: no Config\n";
10 use Thread::Semaphore;
12 my $sem = Thread::Semaphore->new(0);
16 for (my $i = 0; $i < $nthreads; $i++) {
18 my $tid = Thread->self->tid;
19 print "thread $tid started...\n";
21 print "thread $tid finishing\n";
25 print "main: started $nthreads threads\n";
28 my @list = Thread->list;
29 printf "main: Thread->list returned %d threads\n", scalar(@list);
31 foreach my $t (@list) {
32 print "inspecting thread $t...\n";
33 print "...deref is $$t\n";
34 print "...flags = ", $t->flags, "\n";
35 print "...tid = ", $t->tid, "\n";
37 print "main thread telling workers to finish off...\n";