[alsa-devel] [PATCH] Use thread-safe locale functions

Rémi Denis-Courmont remi at remlab.net
Tue Apr 13 17:25:42 CEST 2010


Le mardi 13 avril 2010 18:19:50 Clemens Ladisch, vous avez écrit :
> 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.
> 
> I don't think these functions are available in small embedded C
> libraries like dietlibc.

And you're suggesting what? That we continue to let alsa-lib crash programs 
that use it?

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis


More information about the Alsa-devel mailing list