Skip to content

Commit

Permalink
2006-09-14 Benjamin Kosnik <[email protected]>
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
bkoz committed Sep 14, 2006
1 parent 80461b5 commit d7f04b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
2006-09-13 Benjamin Kosnik <[email protected]>
2006-09-14 Benjamin Kosnik <[email protected]>

* include/bits/concurrence.h (__mutex::__mutex): Pass address of
mutex to *_MUTEX_INIT_FUNCTION.

2006-09-13 Benjamin Kosnik <[email protected]>

* include/bits/atomicity.h: Move to...
* include/ext/atomicity.h: ...here.
Expand Down
4 changes: 2 additions & 2 deletions libstdc++-v3/include/ext/concurrence.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d7f04b3

Please sign in to comment.