summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/misc-inst.cc
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 01:32:43 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 01:32:43 +0000
commita7f96d1cd1f5a97fd0ff7bf662a0a6c311c53d23 (patch)
treef71f116f1f9678557e7764415bf032ec269eadcf /libstdc++-v3/src/misc-inst.cc
parent422b912ec28e4aca826922ccbef3bba99ffc3367 (diff)
downloadgcc-a7f96d1cd1f5a97fd0ff7bf662a0a6c311c53d23.tar.gz
2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/12658 * src/locale_init.cc (locale::locale): Lock critical regions with external mutexes. (locale::global): Same. * include/bits/concurrence.h (__glibcxx_mutex_define_initialized): Add in once bits for cases without __GTHREAD_MUTEX_INIT. (__glibcxx_mutex_lock): Same. * config/cpu/generic/atomicity.h: Remove _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h. * src/misc-inst.cc: Move all locking bits out of this file. * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK. * src/misc-inst.cc: Same. * config/cpu/hppa/atomicity.h: Same. * config/linker-map.gnu: Remove types in the signature of atomic exports, as they may vary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79043 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/misc-inst.cc')
-rw-r--r--libstdc++-v3/src/misc-inst.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/libstdc++-v3/src/misc-inst.cc b/libstdc++-v3/src/misc-inst.cc
index c4496525928..b9bc29882f0 100644
--- a/libstdc++-v3/src/misc-inst.cc
+++ b/libstdc++-v3/src/misc-inst.cc
@@ -73,24 +73,6 @@ namespace std
namespace __gnu_cxx
{
-#ifdef _GLIBCXX_INST_ATOMICITY_LOCK
- template volatile int _Atomicity_lock<0>::_S_atomicity_lock;
-#endif
-
-#ifdef _GLIBCXX_NEED_GENERIC_MUTEX
-#ifdef __GTHREAD_MUTEX_INIT
- __gthread_mutex_t _Atomic_add_mutex = __GTHREAD_MUTEX_INIT;
-#else
- // generic atomicity.h without static initialization
- __gthread_mutex_t _Atomic_add_mutex;
- __gthread_once_t _Atomic_add_mutex_once = __GTHREAD_ONCE_INIT;
- void __gthread_atomic_add_mutex_once()
- {
- __GTHREAD_MUTEX_INIT_FUNCTION (&_Atomic_add_mutex);
- }
-#endif
-#endif // _GLIBCXX_NEED_GLOBAL_MUTEX
-
template class stdio_sync_filebuf<char>;
#ifdef _GLIBCXX_USE_WCHAR_T
template class stdio_sync_filebuf<wchar_t>;