[alsa-devel] [PATCH alsa-lib 2/2] Use thread-safe locale functions if available
perex at perex.cz
Wed Apr 21 19:21:34 CEST 2010
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
Thanks. I applied both patches to alsa-lib git repo.
Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.
More information about the Alsa-devel