aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix-threads.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>1999-09-08 07:01:32 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-09-08 07:01:32 +0000
commit400ec270792adedd6950240d2adfb90cc8d0f26d (patch)
tree545b1054d4194b06ad0b023d71e8207c08207fa9 /libjava/include/posix-threads.h
parentf3ad1f9c0d8f61ccd729b0b9687944856dd9cf07 (diff)
downloadgcc-400ec270792adedd6950240d2adfb90cc8d0f26d.zip
gcc-400ec270792adedd6950240d2adfb90cc8d0f26d.tar.gz
gcc-400ec270792adedd6950240d2adfb90cc8d0f26d.tar.bz2
posix-threads.h (_Jv_PthreadCheckMonitor): Changed test in __m_count case.
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test in __m_count case. From-SVN: r29193
Diffstat (limited to 'libjava/include/posix-threads.h')
-rw-r--r--libjava/include/posix-threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index cc8493a..00a918f 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -114,7 +114,7 @@ _Jv_PthreadCheckMonitor (_Jv_Mutex_t *mu)
// On Linux we exploit knowledge of the implementation.
int r = pmu->m_count == 1;
#elif defined (PTHREAD_MUTEX_HAVE___M_COUNT)
- int r = pmu->__m_count == 1;
+ int r = (pthread_t) pmu->__m_owner == pthread_self ();
#else
int r = mu->count == 0;
#endif