From: Clemens Ladisch <clemens@ladisch.de>
To: "Rémi Denis-Courmont" <remi@remlab.net>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] Use thread-safe locale functions
Date: Tue, 13 Apr 2010 17:19:50 +0200 [thread overview]
Message-ID: <4BC48B96.7040002@ladisch.de> (raw)
In-Reply-To: <1271170217-10904-1-git-send-email-remi@remlab.net>
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.
Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2010-04-13 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-13 14:50 [PATCH] Use thread-safe locale functions Rémi Denis-Courmont
2010-04-13 15:19 ` Clemens Ladisch [this message]
2010-04-13 15:25 ` Rémi Denis-Courmont
2010-04-13 15:54 ` [PATCH] Check if uselocale() is present Rémi Denis-Courmont
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC48B96.7040002@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=remi@remlab.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).