From cf4eda6001a5a1ba6853aeafcfffff149d29a614 Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 13 Apr 2006 03:09:34 +0000 Subject: Unexpand TAILQ_FIRST(foo) == NULL to TAILQ_EMPTY. Ok'ed by: davidxu --- lib/libkse/thread/thr_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libkse/thread/thr_mutex.c') diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c index 39e36ff..6383cd8 100644 --- a/lib/libkse/thread/thr_mutex.c +++ b/lib/libkse/thread/thr_mutex.c @@ -269,7 +269,7 @@ _pthread_mutex_destroy(pthread_mutex_t *mutex) * Check to see if this mutex is in use: */ if (((*mutex)->m_owner != NULL) || - (TAILQ_FIRST(&(*mutex)->m_queue) != NULL) || + (!TAILQ_EMPTY(&(*mutex)->m_queue)) || ((*mutex)->m_refcount != 0)) { ret = EBUSY; -- cgit v1.1