The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
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();