Commit 3d57d7ba by Loren J. Rittle Committed by Loren J. Rittle

* include/ext/mt_allocator.h: Portability.

From-SVN: r68406
parent d46c570d
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* config/abi/alpha-freebsd5/baseline_symbols.txt: New file. * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
* config/abi/sparc-freebsd5/baseline_symbols.txt: New file. * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
* include/ext/mt_allocator.h: Portability.
2003-06-23 Benjamin Kosnik <bkoz@redhat.com> 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/libstdc++-assign.txt: Update address. * docs/html/17_intro/libstdc++-assign.txt: Update address.
......
...@@ -613,13 +613,15 @@ namespace __gnu_cxx ...@@ -613,13 +613,15 @@ namespace __gnu_cxx
if (!_S_bin[bin].mutex) if (!_S_bin[bin].mutex)
__throw_bad_alloc(); __throw_bad_alloc();
/* #ifdef __GTHREAD_MUTEX_INIT
* This is not only ugly - it's extremly non-portable! {
* However gthr.h does not currently provide a // Do not copy a POSIX/gthr mutex once in use.
* __gthread_mutex_init() call. The correct solution to __gthread_mutex_t __tmp = __GTHREAD_MUTEX_INIT;
* this problem needs to be discussed. *_S_bin[bin].mutex = __tmp;
*/ }
pthread_mutex_init(_S_bin[bin].mutex, NULL); #else
{ __GTHREAD_MUTEX_INIT_FUNCTION (_S_bin[bin].mutex); }
#endif
#endif #endif
for (size_t thread = 0; thread <= _S_max_threads; thread++) for (size_t thread = 0; thread <= _S_max_threads; thread++)
......
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