diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-16 19:03:39 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-16 19:03:39 +0000 |
commit | 733129fea5e355adc21fc0f9e23ba448f59c5de3 (patch) | |
tree | 7e51948e6c3cb7b2c34d267c2ab665a8f3612f7a /lib/Thread.pm | |
parent | 4cf4ea458eb1811161558c203d03964bd34808ab (diff) | |
download | perl-733129fea5e355adc21fc0f9e23ba448f59c5de3.tar.gz |
It's neither-nor, and protect against the impossible.
p4raw-id: //depot/perl@13055
Diffstat (limited to 'lib/Thread.pm')
-rw-r--r-- | lib/Thread.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Thread.pm b/lib/Thread.pm index 3aa6162de0..fc39769002 100644 --- a/lib/Thread.pm +++ b/lib/Thread.pm @@ -313,6 +313,10 @@ sub unimplement { BEGIN { if ($ithreads) { + if ($othreads) { + require Carp; + Carp::croak("This Perl has both ithreads and 5005threads (serious malconfiguration)"); + } XSLoader::load 'threads'; for my $m (qw(new join detach yield self tid equal)) { no strict 'refs'; @@ -330,7 +334,7 @@ BEGIN { unimplement(qw(unlock)); } else { require Carp; - Carp::croak("This Perl has neither ithreads not 5005threads"); + Carp::croak("This Perl has neither ithreads nor 5005threads"); } } |