Commit 4bd2f9d6 by Benjamin Kosnik Committed by Benjamin Kosnik

2005-09-25 Benjamin Kosnik <bkoz@redhat.com>

	    Eric Botcazou  <ebotcazou@libertysurf.fr>

	* include/ext/mt_allocator.h
	(__per_type_pool<...true>::_S_initialize_once): Always call
	_M_initialize_once.
	(__common_pool<...true>::_S_initialize_once): Same.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r104678
parent 92b4f0af
2005-09-25 Benjamin Kosnik <bkoz@redhat.com>
Eric Botcazou <ebotcazou@libertysurf.fr>
* include/ext/mt_allocator.h
(__per_type_pool<...true>::_S_initialize_once): Always call
_M_initialize_once.
(__common_pool<...true>::_S_initialize_once): Same.
2005-09-23 Benjamin Kosnik <bkoz@redhat.com> 2005-09-23 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/ext/mt_allocator/tune-1.cc: Clarify for single-thread. * testsuite/ext/mt_allocator/tune-1.cc: Clarify for single-thread.
......
...@@ -432,8 +432,11 @@ namespace __gnu_cxx ...@@ -432,8 +432,11 @@ namespace __gnu_cxx
static __gthread_once_t __once = __GTHREAD_ONCE_INIT; static __gthread_once_t __once = __GTHREAD_ONCE_INIT;
__gthread_once(&__once, _S_initialize); __gthread_once(&__once, _S_initialize);
} }
else
_S_get_pool()._M_initialize_once(); // Double check initialization. May be necessary on some
// systems for proper construction when not compiling with
// thread flags.
_S_get_pool()._M_initialize_once();
__init = true; __init = true;
} }
} }
...@@ -524,8 +527,11 @@ namespace __gnu_cxx ...@@ -524,8 +527,11 @@ namespace __gnu_cxx
static __gthread_once_t __once = __GTHREAD_ONCE_INIT; static __gthread_once_t __once = __GTHREAD_ONCE_INIT;
__gthread_once(&__once, _S_initialize); __gthread_once(&__once, _S_initialize);
} }
else
_S_get_pool()._M_initialize_once(); // Double check initialization. May be necessary on some
// systems for proper construction when not compiling with
// thread flags.
_S_get_pool()._M_initialize_once();
__init = true; __init = true;
} }
} }
......
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