6 require Config; import Config;
7 if (! $Config{'usethreads'}) {
23 # create a thread passing args and immedaietly wait for it.
24 my $t = new Thread \&content,("ok 2\n","ok 3\n");
27 # check that lock works ...
29 $t = new Thread sub { lock $foo; print "ok 5\n" };
42 $ret = Thread->new(\&islocked, @_);
47 $t = new Thread \&islocked, map { "ok $_\n" } 6..10;
51 # test that sleep lets other thread run
52 $t = new Thread \&islocked,"ok 11\n";