diff options
| author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-14 22:28:55 +0000 |
|---|---|---|
| committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-14 22:28:55 +0000 |
| commit | d7f04b36087b6a4c2e95e17c1cd2af765e17dc9b (patch) | |
| tree | 06a338d9111924072dd5d700f1dd0ec2aa88e016 | |
| parent | 80461b5c48cd7548d709dcc5e6c67a6e0c8eae91 (diff) | |
| download | ppe42-gcc-d7f04b36087b6a4c2e95e17c1cd2af765e17dc9b.tar.gz ppe42-gcc-d7f04b36087b6a4c2e95e17c1cd2af765e17dc9b.zip | |
2006-09-14 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/concurrence.h (__mutex::__mutex): Pass address of
mutex to *_MUTEX_INIT_FUNCTION.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116954 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
| -rw-r--r-- | libstdc++-v3/include/ext/concurrence.h | 4 |
2 files changed, 8 insertions, 3 deletions
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 <bkoz@redhat.com> +2006-09-14 Benjamin Kosnik <bkoz@redhat.com> + + * include/bits/concurrence.h (__mutex::__mutex): Pass address of + mutex to *_MUTEX_INIT_FUNCTION. + +2006-09-13 Benjamin Kosnik <bkoz@redhat.com> * 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 |

