]> gcc.gnu.org Git - gcc.git/commitdiff
re GNATS libgcj/98 (pthread_mutex_init in libjava/posix-threads.cc)
authorTom Tromey <tromey@cygnus.com>
Tue, 30 Nov 1999 18:53:15 +0000 (18:53 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 30 Nov 1999 18:53:15 +0000 (18:53 +0000)
* posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
mutex to initialize.  Initialize `count' if required.
Fixes PR libgcj/98.

From-SVN: r30725

libjava/ChangeLog
libjava/posix-threads.cc

index f9abaeeeda2473cdcc507fb38c26c8fbc9da13b1..e14c6e9789fa8023418eaee7b3d00cd028c837d3 100644 (file)
@@ -1,3 +1,9 @@
+1999-11-30  Tom Tromey  <tromey@cygnus.com>
+
+       * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
+       mutex to initialize.  Initialize `count' if required.
+       Fixes PR libgcj/98.
+
 1999-11-27  Per Bothner  <per@bothner.com>
 
        * exception.cc:  Remove prototype declarations for malloc and free.
index 19c7241cf885c4b4c97598c41a6713101aaaf257..0a3311d428f0a4e0152898805e08adda2136977f 100644 (file)
@@ -165,7 +165,10 @@ _Jv_MutexInit (_Jv_Mutex_t *mu)
   val = &attr;
 #endif
 
-  pthread_mutex_init (mu, val);
+  pthread_mutex_init (_Jv_PthreadGetMutex (mu), val);
+#ifdef PTHREAD_MUTEX_IS_STRUCT
+  mu->count = 0;
+#endif
 
 #if defined (HAVE_PTHREAD_MUTEXATTR_SETTYPE) || defined (HAVE_PTHREAD_MUTEXATTR_SETKIND_NP)
   pthread_mutexattr_destroy (&attr);
This page took 0.064062 seconds and 5 git commands to generate.