]> gcc.gnu.org Git - gcc.git/commitdiff
concurrence.h (__mutex::__mutex): Pass address of mutex to *_MUTEX_INIT_FUNCTION.
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 14 Sep 2006 22:28:55 +0000 (22:28 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 14 Sep 2006 22:28:55 +0000 (22:28 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/concurrence.h

index 3d5f8798bd5e1ee2c610cfcf837105001a6d2633..d40bee2a189e54f92e76a7dc77e35b806a02ac2e 100644 (file)
@@ -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.     
index 54d21e595ae3855bd154788dc03cb96c2121f192..5f71115293bbb208aed505c07450df72d2d57d0d 100644 (file)
@@ -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 
This page took 0.063164 seconds and 5 git commands to generate.