summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-11 20:18:36 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-11 20:18:36 +0000
commit198c4886b4c68cd8e86113c8a3cf2690bf10704d (patch)
treee2b3b8e33dd65cd353d4b4190f2cbe268011ec8e /libstdc++-v3/src
parentae264e9a89c7ea71ab8153b4353b57189832129e (diff)
downloadgcc-198c4886b4c68cd8e86113c8a3cf2690bf10704d.tar.gz
2006-10-11 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/29426 * libsupc++/guard.cc (get_static_mutex): New. (mutex_wrapper::mutex_wrapper): Use it to get properly initialized recursive mutex without ordering issues. * src/locale_init.cc (__get_locale_mutex): No need to uglify. Change to get_locale_mutex. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117643 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/locale_init.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/src/locale_init.cc b/libstdc++-v3/src/locale_init.cc
index a2c18dd84cb..28ee484112f 100644
--- a/libstdc++-v3/src/locale_init.cc
+++ b/libstdc++-v3/src/locale_init.cc
@@ -37,7 +37,7 @@
namespace
{
__gnu_cxx::__mutex&
- __get_locale_mutex()
+ get_locale_mutex()
{
static __gnu_cxx::__mutex locale_mutex;
return locale_mutex;
@@ -212,7 +212,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
locale::locale() throw() : _M_impl(0)
{
_S_initialize();
- __gnu_cxx::__scoped_lock sentry(__get_locale_mutex());
+ __gnu_cxx::__scoped_lock sentry(get_locale_mutex());
_S_global->_M_add_reference();
_M_impl = _S_global;
}
@@ -223,7 +223,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_S_initialize();
_Impl* __old;
{
- __gnu_cxx::__scoped_lock sentry(__get_locale_mutex());
+ __gnu_cxx::__scoped_lock sentry(get_locale_mutex());
__old = _S_global;
__other._M_impl->_M_add_reference();
_S_global = __other._M_impl;