From 400ec270792adedd6950240d2adfb90cc8d0f26d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 8 Sep 1999 07:01:32 +0000 Subject: 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 --- libjava/include/posix-threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/include/posix-threads.h') 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 -- cgit v1.1