Lines Matching refs:Thread
13 use Thread::Queue;
29 my $q = Thread::Queue->new(1..$nthreads);
36 ok($el >= 1, "Thread $id got $el");
39 ok(1, "Thread $id done");
60 $q = Thread::Queue->new();
70 is($el, shift(@items), "Thread got $el");
77 is($q->dequeue(), 'done', 'Thread reported done');
89 is(scalar(@el), $count, "Thread $id got @el");
115 is($el[0], shift(@items), "Thread got $el[0]");
117 is(scalar(@el), 1, 'Thread to exit');
119 is($el[1], shift(@items), "Thread got $el[1]");
127 is($q->dequeue(), 'done', 'Thread reported done');