This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
time64.c: Add mutex protection
authorKarl Williamson <khw@cpan.org>
Sun, 15 Mar 2020 18:16:47 +0000 (12:16 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 19 Mar 2020 00:08:57 +0000 (18:08 -0600)
commit0e72ccea99231fdf256314049ce270602f5c63ac
tree6d48fdfc3d0b95e08c4f8b0e2f150a18b292f924
parent315d3362b22a8ecd0216505ee29f2cad0d9f3182
time64.c: Add mutex protection

The gmtime_r() and localtime_r() functions are  not thread safe with
regards to changes in the environment and locale while executing.  This
protects them with a mutex, but only from other functions that also
participate in using that mutex.  Future commits will change everything
in the perl core to do that, but there is still a hole if some XS
writer, or alien library doesn't use the mutex.
time64.c