diff options
author | Andrew John Hughes <gnu.andrew@redhat.com> | 2013-03-13 21:21:27 +0000 |
---|---|---|
committer | Andrew John Hughes <gandalf@gcc.gnu.org> | 2013-03-13 21:21:27 +0000 |
commit | cf7583edf22575d3590be71d69727c3125d6659d (patch) | |
tree | 201f04847c4885c882291734f9d02d175d841698 /libjava/include/posix-threads.h | |
parent | decc676eb52a061b15df7eed9fead794458e9e09 (diff) | |
download | gcc-cf7583edf22575d3590be71d69727c3125d6659d.zip gcc-cf7583edf22575d3590be71d69727c3125d6659d.tar.gz gcc-cf7583edf22575d3590be71d69727c3125d6659d.tar.bz2 |
Use pthread_equal rather than != to compare thread IDs.
2013-03-12 Andrew John Hughes <gnu.andrew@redhat.com>
* include/posix-threads.h:
(_Jv_MutexCheckMonitor(_Jv_Mutex_t)): Use
pthread_equal rather than !=.
From-SVN: r196639
Diffstat (limited to 'libjava/include/posix-threads.h')
-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 59e65f7..1ec311d 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -79,7 +79,7 @@ typedef struct inline int _Jv_MutexCheckMonitor (_Jv_Mutex_t *mu) { - return (mu->owner != pthread_self()); + return (pthread_equal(mu->owner, pthread_self()) == 0); } // Type identifying a POSIX thread. |