lift locale lock out of internal __get_locale
authorRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 21:58:32 +0000 (16:58 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 21:58:32 +0000 (16:58 -0500)
commit37fcc13c12ade19c37a1a8ac80be4a14e21cff1e
treebf9b3460c0ca84c4abdaab1f276e6f6e6d676c1c
parentc53e9b239418eb3e0e8be256abd0f6ad7608bbcf
lift locale lock out of internal __get_locale

this allows the lock to be shared with setlocale, eliminates repeated
per-category lock/unlock in newlocale, and will allow the use of
pthread_once in newlocale to be dropped (to be done separately).
src/internal/locale_impl.h
src/locale/locale_map.c
src/locale/newlocale.c
src/locale/setlocale.c