Commit cf7583ed by Andrew John Hughes Committed by Andrew John Hughes

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
parent decc676e
2013-03-12 Andrew John Hughes <gnu.andrew@redhat.com>
* include/posix-threads.h:
(_Jv_MutexCheckMonitor(_Jv_Mutex_t)): Use
pthread_equal rather than !=.
2013-01-07 H.J. Lu <hongjiu.lu@intel.com> 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (lib_gnu_awt_xlib_la_LDFLAGS): Replace * Makefile.am (lib_gnu_awt_xlib_la_LDFLAGS): Replace
......
...@@ -79,7 +79,7 @@ typedef struct ...@@ -79,7 +79,7 @@ typedef struct
inline int inline int
_Jv_MutexCheckMonitor (_Jv_Mutex_t *mu) _Jv_MutexCheckMonitor (_Jv_Mutex_t *mu)
{ {
return (mu->owner != pthread_self()); return (pthread_equal(mu->owner, pthread_self()) == 0);
} }
// Type identifying a POSIX thread. // Type identifying a POSIX thread.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment