]> gcc.gnu.org Git - gcc.git/commitdiff
posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex.
authorTom Tromey <tromey@cygnus.com>
Tue, 21 Sep 1999 23:01:23 +0000 (23:01 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 21 Sep 1999 23:01:23 +0000 (23:01 +0000)
* include/posix-threads.h (_Jv_MutexDestroy): Use
_Jv_PthreadGetMutex.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.

From-SVN: r29569

libjava/ChangeLog
libjava/include/posix-threads.h

index 6ce5ae0dfb20411dc180181c010dd0c53ae8fdf9..f43d80eba78fed94e0f6461e02f81ada6b6955f2 100644 (file)
@@ -1,5 +1,10 @@
 1999-09-21  Tom Tromey  <tromey@cygnus.com>
 
+       * include/posix-threads.h (_Jv_MutexDestroy): Use
+       _Jv_PthreadGetMutex.
+       (_Jv_MutexLock): Likewise.
+       (_Jv_MutexUnlock): Likewise.
+
        * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
        previous patch; it too was incorrect.
        * java/io/PrintStream.java (PrintStream): Likewise.
index 38629f44b010a9361b90635d09d3ead376048f9f..5c6cc7bdf4380b6d482c04bcd83f949a2a75371f 100644 (file)
@@ -194,7 +194,7 @@ void _Jv_MutexInit (_Jv_Mutex_t *mu);
 inline void
 _Jv_MutexDestroy (_Jv_Mutex_t *mu)
 {
-  pthread_mutex_destroy (mu);
+  pthread_mutex_destroy (_Jv_PthreadGetMutex (mu));
 }
 
 #else /* HAVE_RECURSIVE_MUTEX */
@@ -209,7 +209,7 @@ extern void _Jv_MutexDestroy (_Jv_Mutex_t *mu);
 inline int
 _Jv_MutexLock (_Jv_Mutex_t *mu)
 {
-  int r = pthread_mutex_lock (mu);
+  int r = pthread_mutex_lock (_Jv_PthreadGetMutex (mu));
 #ifdef PTHREAD_MUTEX_IS_STRUCT
   if (! r)
     ++mu->count;
@@ -220,7 +220,7 @@ _Jv_MutexLock (_Jv_Mutex_t *mu)
 inline int
 _Jv_MutexUnlock (_Jv_Mutex_t *mu)
 {
-  int r = pthread_mutex_unlock (mu);
+  int r = pthread_mutex_unlock (_Jv_PthreadGetMutex (mu));
 #ifdef PTHREAD_MUTEX_IS_STRUCT
   if (! r)
     --mu->count;
This page took 0.068062 seconds and 5 git commands to generate.