This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX.xs: Add mutex around localeconv()
authorKarl Williamson <khw@cpan.org>
Wed, 17 Jan 2018 18:22:02 +0000 (11:22 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 13:57:50 +0000 (06:57 -0700)
commit6e4200280cd1c3843eea21c73aab78a8c7063027
treebc4ca87f14602c2e538d50aec6644cbd5fb5c1f6
parent7fcf92725e7e815c0b85c20ffa6fa06bd425098b
POSIX.xs: Add mutex around localeconv()

If another thread calls localeconv(), it can destroy the returned
buffer.  This adds a mutex around this call; the only other place in the
core that calls it already has this mutex, so they now are thread-safe.
ext/POSIX/POSIX.xs