aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix-threads.h
diff options
context:
space:
mode:
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 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.