diff options
author | Karl Williamson <khw@cpan.org> | 2018-03-09 11:27:28 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-03-12 10:22:01 -0600 |
commit | 423a80b7c64953ef2d8696dae9f0bd751f996893 (patch) | |
tree | 8fca4e5eca03c8560d22ac39742438bd441e9953 /perlvars.h | |
parent | 8d72e74e3dc5017c5a3fade48e0c74109c297ebc (diff) | |
download | perl-423a80b7c64953ef2d8696dae9f0bd751f996893.tar.gz |
Don't create unneeded mutexes
These mutexes are needed only for unsafe threaded-locale operations.
Diffstat (limited to 'perlvars.h')
-rw-r--r-- | perlvars.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perlvars.h b/perlvars.h index be67a59988..0f2e3475d3 100644 --- a/perlvars.h +++ b/perlvars.h @@ -99,9 +99,10 @@ PERLVARI(G, mmap_page_size, IV, 0) #if defined(USE_ITHREADS) PERLVAR(G, hints_mutex, perl_mutex) /* Mutex for refcounted he refcounting */ +#ifndef USE_THREAD_SAFE_LOCALE PERLVAR(G, locale_mutex, perl_mutex) /* Mutex for setlocale() changing */ PERLVAR(G, lc_numeric_mutex, perl_mutex) /* Mutex for switching LC_NUMERIC */ - +# endif #endif /* Proxy for HAS_POSIX_2008_LOCALE, since that is not defined in time for this */ |