diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3d5f8798bd5..d40bee2a189 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,9 @@ -2006-09-13 Benjamin Kosnik +2006-09-14 Benjamin Kosnik + + * include/bits/concurrence.h (__mutex::__mutex): Pass address of + mutex to *_MUTEX_INIT_FUNCTION. + +2006-09-13 Benjamin Kosnik * include/bits/atomicity.h: Move to... * include/ext/atomicity.h: ...here. diff --git a/libstdc++-v3/include/ext/concurrence.h b/libstdc++-v3/include/ext/concurrence.h index 54d21e595ae..5f71115293b 100644 --- a/libstdc++-v3/include/ext/concurrence.h +++ b/libstdc++-v3/include/ext/concurrence.h @@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) __gthread_mutex_t __tmp = __GTHREAD_MUTEX_INIT; _M_mutex = __tmp; #else - __GTHREAD_MUTEX_INIT_FUNCTION(_M_mutex); + __GTHREAD_MUTEX_INIT_FUNCTION(&_M_mutex); #endif } #endif @@ -128,7 +128,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) __gthread_recursive_mutex_t __tmp = __GTHREAD_RECURSIVE_MUTEX_INIT; _M_mutex = __tmp; #else - __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION(_M_mutex); + __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION(&_M_mutex); #endif } #endif