This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
libgcj/98
- To: tromey at cygnus dot com
- Subject: libgcj/98
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 12 Nov 1999 17:00:01 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: Tom Tromey <tromey at cygnus dot com>
The following reply was made to PR libgcj/98; it has been noted by GNATS.
From: Tom Tromey <tromey@cygnus.com>
To: Java Gnats Server <java-gnats@sourceware.cygnus.com>
Cc: joerg.brunsmann@fernuni-hagen.de
Subject: libgcj/98
Date: 12 Nov 1999 09:52:46 -0700
I'm resending this since it didn't make it the last time.
Try the appended patch. If it works for you I'll check it in.
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/11 17:19:10
@@ -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);