6 require Config; import Config;
7 if ($Config{'ccflags'} !~ /-DUSE_THREADS\b/) {
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" };
41 $ret = new Thread \&islocked,shift;
47 $t = islocked("ok 6\n","ok 7\n");
50 # test that sleep lets other thread run
51 $t = new Thread \&islocked,"ok 8\n";