8 our $VERSION = '1.81_01';
9 my $XS_VERSION = $VERSION;
10 $VERSION = eval $VERSION;
12 # Verify this Perl supports threads
14 if (! $Config::Config{useithreads}) {
15 die("This Perl not built to support threads\n");
18 # Complain if 'threads' is loaded after 'threads::shared'
19 if ($threads::shared::threads_shared) {
21 Warning, threads::shared has already been loaded. To
22 enable shared variables, 'use threads' must be called
23 before threads::shared or any module that uses it.
27 # Declare that we have been loaded
28 $threads::threads = 1;
32 XSLoader::load('threads', $XS_VERSION);