Re: bugs regarding late g_thread_init() calls
- From: "Morten Welinder" <mwelinder gmail com>
- To: "Yevgen Muntyan" <muntyan tamu edu>
- Cc: gtk-devel-list gnome org, Tim Janik <timj imendio com>
- Subject: Re: bugs regarding late g_thread_init() calls
- Date: Thu, 4 Jan 2007 12:12:53 -0500
This is another thing. Is this correct? If yes, then are we all completely
screwed?
Certainly. Google "threads setlocale unix" and see.
For example http://www.phy.ohiou.edu/cgi-bin/man-cgi.sol?setlocale+3C
To change locale in a multi-thread application setlocale
should be called prior to using any locale sensitive rou-
tine. Using setlocale to query the current locale is safe
and can be used anywhere in a multi-thread application.
setlocale will happily dlclose code that another thread is running.
Or worse.
M.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]