This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl.h: Add capability for many-reader ENV mutex locking
authorKarl Williamson <khw@cpan.org>
Tue, 1 Dec 2020 14:17:21 +0000 (07:17 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 20 Dec 2020 05:00:29 +0000 (22:00 -0700)
commit57d4826ad702b8c483b826af1c82f52ce64651ff
tree5a444073079a27a71358f810d54fc2dc726a6abd
parent7510ca24a0ab79a6cf9eb76f13117b4e4d18051e
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.
perl.h
perlvars.h