aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix-threads.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-09-21 23:01:23 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-09-21 23:01:23 +0000
commit5057b5e8d1088230c77b7305d16511497556e7b0 (patch)
tree3f1b746fb7ed2826b537fda676eb0ca01977d1ab /libjava/include/posix-threads.h
parent1eb14644246b11955d31f602ffd4551cfd9af2dd (diff)
downloadgcc-5057b5e8d1088230c77b7305d16511497556e7b0.zip
gcc-5057b5e8d1088230c77b7305d16511497556e7b0.tar.gz
gcc-5057b5e8d1088230c77b7305d16511497556e7b0.tar.bz2
posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex.
* include/posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex. (_Jv_MutexLock): Likewise. (_Jv_MutexUnlock): Likewise. From-SVN: r29569
Diffstat (limited to 'libjava/include/posix-threads.h')
-rw-r--r--libjava/include/posix-threads.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index 38629f4..5c6cc7b 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -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;