use strict;
use Test::More;
use Config;
BEGIN {
if (! $Config{useithreads}) {
plan skip_all => "This perl is not built with threads";
}
}
use threads;
use_ok "Crypt::DH::GMP";
my $x = Crypt::DH::GMP->new;
my @threads;
for (1..5) {
push @threads, threads->create(sub{
note( "spawned thread : " . threads->tid() );
});
}
foreach my $thr (@threads) {
note( "joining thread : " . $thr->tid );
$thr->join;
}
ok(1);
done_testing();