From c5334cac084b1e7b3efcf0687be46bd3e05c881c Mon Sep 17 00:00:00 2001 From: des Date: Thu, 14 Feb 2008 12:37:58 +0000 Subject: _pthread_mutex_isowned_np(): use a more reliable method; the current code will work in simple cases, but may fail in more complicated ones. Reviewed by: davidxu --- lib/libthr/thread/thr_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libthr') diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 0dc9b73..b16cf6e 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -876,5 +876,5 @@ _pthread_mutex_isowned_np(pthread_mutex_t *mutex) if (__predict_false(ret)) return (ret); } - return ((*mutex)->m_lock.m_owner == TID(curthread)); + return ((*mutex)->m_owner == curthread); } -- cgit v1.1