concurrence.h (__mutex::__mutex): Pass address of mutex to *_MUTEX_INIT_FUNCTION.
2006-09-14 Benjamin Kosnik <bkoz@redhat.com> * include/bits/concurrence.h (__mutex::__mutex): Pass address of mutex to *_MUTEX_INIT_FUNCTION. From-SVN: r116954
This commit is contained in:
parent
b00fef55d5
commit
b128c5ef49
2 changed files with 8 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue