• R
    replace atomics with locks in locale-setting code · 63c188ec
    Rich Felker 提交于
    this is part of a general program of removing direct use of atomics
    where they are not necessary to meet correctness or performance needs,
    but in this case it's also an optimization. only the global locale
    needs synchronization; allocated locales referenced with locale_t
    handles are immutable during their lifetimes, and using atomics to
    initialize them increases their cost of setup.
    63c188ec
__setlocalecat.c 2.4 KB