diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-08 07:01:32 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-08 07:01:32 +0000 |
| commit | cbdcfdf2c801a42e439028d6668e7b03d09b1a44 (patch) | |
| tree | 545b1054d4194b06ad0b023d71e8207c08207fa9 /libjava/include | |
| parent | 38330f30a2865c1f371c1399622686a9abefaa1d (diff) | |
| download | ppe42-gcc-cbdcfdf2c801a42e439028d6668e7b03d09b1a44.tar.gz ppe42-gcc-cbdcfdf2c801a42e439028d6668e7b03d09b1a44.zip | |
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
in __m_count case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
| -rw-r--r-- | libjava/include/posix-threads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index cc8493a4f3e..00a918fab27 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 |

