This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libgcj/98


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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]