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.
inline void
_Jv_MutexDestroy (_Jv_Mutex_t *mu)
{
- pthread_mutex_destroy (mu);
+ pthread_mutex_destroy (_Jv_PthreadGetMutex (mu));
}
#else /* HAVE_RECURSIVE_MUTEX */
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;
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;