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
This commit is contained in:
parent
f3ad1f9c0d
commit
400ec27079
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue