summaryrefslogtreecommitdiff
path: root/perlvars.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-12-01 07:17:21 -0700
committerKarl Williamson <khw@cpan.org>2020-12-19 22:00:29 -0700
commit57d4826ad702b8c483b826af1c82f52ce64651ff (patch)
tree5a444073079a27a71358f810d54fc2dc726a6abd /perlvars.h
parent7510ca24a0ab79a6cf9eb76f13117b4e4d18051e (diff)
downloadperl-57d4826ad702b8c483b826af1c82f52ce64651ff.tar.gz
perl.h: Add capability for many-reader ENV mutex locking
There are several places where there could be a problem in the environment were changed by another thread when a function is executing, but otherwise if another thread were reading the environment at the same time, there isn't a problem. This adds mutex for that situation. Future commits will take advantage of it.
Diffstat (limited to 'perlvars.h')
-rw-r--r--perlvars.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlvars.h b/perlvars.h
index 1bbe5e3ed3..3bfd46fe94 100644
--- a/perlvars.h
+++ b/perlvars.h
@@ -104,7 +104,7 @@ PERLVARI(G, mmap_page_size, IV, 0)
#if defined(USE_ITHREADS)
PERLVAR(G, hints_mutex, perl_mutex) /* Mutex for refcounted he refcounting */
-PERLVAR(G, env_mutex, perl_mutex) /* Mutex for accessing ENV */
+PERLVAR(G, env_mutex, perl_RnW1_mutex_t) /* Mutex for accessing ENV */
PERLVAR(G, locale_mutex, perl_mutex) /* Mutex related to locale handling */
# ifndef USE_THREAD_SAFE_LOCALE
PERLVAR(G, lc_numeric_mutex, perl_mutex) /* Mutex for switching LC_NUMERIC */