]> git.alsa-project.org Git - alsa-lib.git/commit
Use thread-safe locale functions if available
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 21 Apr 2010 16:37:48 +0000 (18:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 21 Apr 2010 17:20:39 +0000 (19:20 +0200)
commit8d80d5f344ae5e32d24122cbf8e759fdd1e1a60d
treefa1bda4a3eddd41e704acff8c846c1e3e11dd024
parent51ef640cee37f73d771e784e81196ff7c15f53ff
Use thread-safe locale functions if available

setlocale() is not thread-safe. It can actually trigger a crash if
another thread uses locale informations at the same time in the process.
Library code should use POSIX newlocale/duplocale/uselocale/freelocale
instead. Those functions only change the locale data for the calling
thread.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c