This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: PR 98
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: PR 98
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 30 Nov 1999 11:50:41 -0700
- Reply-To: tromey at cygnus dot com
I'm checking in the appended patch, which fixes PR 98.
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.
Tom
Index: posix-threads.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/posix-threads.cc,v
retrieving revision 1.13
diff -u -r1.13 posix-threads.cc
--- posix-threads.cc 1999/11/04 16:45:11 1.13
+++ posix-threads.cc 1999/11/30 18:51:26
@@ -165,7 +165,10 @@
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);