Commit af3fb3d6 by Per Bothner Committed by Benjamin Kosnik

2004-01-31 Per Bothner <per@bothner.com>

	* include/ext/mt_allocator.h
	(__mt_alloc::_S_thread_freelist_mutex): Guard with
	__GTHREAD_MUTEX_INIT.

From-SVN: r77042
parent a451b0bd
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.
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment