
21 Apr
2010
21 Apr
'10
8:21 p.m.
On Wed, 21 Apr 2010, Rémi Denis-Courmont wrote:
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.
Thanks. I applied both patches to alsa-lib git repo.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.