diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-05-27 00:22:43 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-05-27 00:28:46 -0400 |
commit | 63c188ec42e76ff768e81f6b65b11c68fc43351e (patch) | |
tree | ce1b61bcf75c87aadc671c0d593b6bd3169f7102 /src/process/posix_spawnattr_getpgroup.c | |
parent | dc031ee0b1ba11baa00cd7f0769e461a5f396c71 (diff) | |
download | musl-63c188ec42e76ff768e81f6b65b11c68fc43351e.tar.gz |
replace atomics with locks in locale-setting code
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.
Diffstat (limited to 'src/process/posix_spawnattr_getpgroup.c')
0 files changed, 0 insertions, 0 deletions