diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b415b261eed..d8740bd3087 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-11-08 Benjamin Kosnik + Doug Gregor + + PR libstdc++/17664 + * src/debug.cc : Just use one mutex. + 2004-11-08 Benjamin Kosnik * configure.ac (libtool_VERSION): To 6:4:0. @@ -118,7 +124,7 @@ 2004-11-02 Benjamin Kosnik Lothar Werzinger - PR libstdc++/17627 + PR libstdc++/17664 * src/debug.cc: Include concurrence, use mutexes. (_Safe_iterator_base::_M_attach): Here. (_Safe_iterator_base::_M_detach): Here. diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index fe6bba45fc3..415fcbf91c1 100644 --- a/libstdc++-v3/src/debug.cc +++ b/libstdc++-v3/src/debug.cc @@ -43,9 +43,7 @@ using namespace std; namespace __gnu_internal { - __glibcxx_mutex_define_initialized(iterator_base_attach_mutex); - __glibcxx_mutex_define_initialized(iterator_base_detach_mutex); - + __glibcxx_mutex_define_initialized(iterator_base_mutex); } // namespace __gnu_internal namespace __gnu_debug @@ -196,7 +194,7 @@ namespace __gnu_debug // Attach to the new sequence (if there is one) if (__seq) { - __gnu_cxx::lock sentry(__gnu_internal::iterator_base_attach_mutex); + __gnu_cxx::lock sentry(__gnu_internal::iterator_base_mutex); _M_sequence = __seq; _M_version = _M_sequence->_M_version; _M_prior = 0; @@ -221,7 +219,7 @@ namespace __gnu_debug _Safe_iterator_base:: _M_detach() { - __gnu_cxx::lock sentry(__gnu_internal::iterator_base_detach_mutex); + __gnu_cxx::lock sentry(__gnu_internal::iterator_base_mutex); if (_M_sequence) { // Remove us from this sequence's list