]> gcc.gnu.org Git - gcc.git/commitdiff
2004-01-31 Per Bothner <per@bothner.com>
authorPer Bothner <per@bothner.com>
Sat, 31 Jan 2004 17:38:45 +0000 (09:38 -0800)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 31 Jan 2004 17:38:45 +0000 (17:38 +0000)
* include/ext/mt_allocator.h
(__mt_alloc::_S_thread_freelist_mutex): Guard with
__GTHREAD_MUTEX_INIT.

From-SVN: r77042

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/mt_allocator.h

index 55b8f7910f927f8d9c9fbd675cbd9e741a6531d7..068c63621be1c7513df6b1e862890daa73257e92 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-31  Per Bothner  <per@bothner.com>
+
+       * include/ext/mt_allocator.h
+       (__mt_alloc::_S_thread_freelist_mutex): Guard with
+       __GTHREAD_MUTEX_INIT.
+
 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
index 9bb7bf47dddb51efe92327558adaff05567ea7d3..1afd5de52253dbcf9c8d9e25d4067a2d8425385b 100644 (file)
@@ -837,7 +837,12 @@ namespace __gnu_cxx
   volatile __mt_alloc<_Tp>::_S_thread_freelist_first = NULL;
 
   template<typename _Tp> __gthread_mutex_t
+#ifdef __GTHREAD_MUTEX_INIT
   __mt_alloc<_Tp>::_S_thread_freelist_mutex = __GTHREAD_MUTEX_INIT;
+#else
+  // XXX
+  __mt_alloc<_Tp>::_S_thread_freelist_mutex;
+#endif
 
   /*
    * Actual initialization in _S_init()
This page took 0.06014 seconds and 5 git commands to generate.