7 plan skip_all => 'Perl compiled without ithreads'
8 unless $Config{useithreads};
9 plan skip_all => 'no threads.pm'
10 unless eval { require threads };
17 my $module = 'Digest::MD5';
19 my $obj = $module->new;
21 my $tdigest = threads->create(sub { $obj->add("bar"); $obj->hexdigest })->join;
23 isnt $obj->clone->hexdigest, $tdigest, "unshared object unaffected by the thread";
26 is $obj->clone->hexdigest, $tdigest;