mirror of
https://github.com/Perl/perl5.git
synced 2026-01-27 01:44:43 +00:00
More Config::threads to threads::threads changes
p4raw-id: //depot/perl@12677
This commit is contained in:
parent
8222d950c8
commit
9ece3ee665
@ -7,7 +7,7 @@ use Scalar::Util qw(weaken);
|
||||
use attributes qw(reftype);
|
||||
|
||||
BEGIN {
|
||||
if($Config{'useithreads'} && $Config::threads) {
|
||||
if($Config{'useithreads'} && $threads::threads) {
|
||||
*share = \&share_enabled;
|
||||
*cond_wait = \&cond_wait_disabled;
|
||||
*cond_signal = \&cond_signal_disabled;
|
||||
|
||||
@ -69,7 +69,7 @@ threads->create('test3',1)->join();
|
||||
|
||||
|
||||
#check Config
|
||||
ok(5, 1 == $Config::threads,"Check that Config::threads is true");
|
||||
ok(5, 1 == $threads::threads,"Check that threads::threads is true");
|
||||
|
||||
#test trying to detach thread
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user