From 36c285d1286bd583e9d7ee6685013ab9058acfcc Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 17 Jul 2006 09:23:44 +0000 Subject: Unexpand two TAILQ_FOREACH_SAFE cases. Ok'ed by: davidxu --- lib/libthr/thread/thr_mutex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libthr/thread/thr_mutex.c') diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 5c47a73..0e3cebe 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -617,8 +617,7 @@ _mutex_unlock_private(pthread_t pthread) { struct pthread_mutex *m, *m_next; - for (m = TAILQ_FIRST(&pthread->mutexq); m != NULL; m = m_next) { - m_next = TAILQ_NEXT(m, m_qe); + TAILQ_FOREACH_SAFE(m, &pthread->mutexq, m_qe, m_next) { if ((m->m_flags & MUTEX_FLAGS_PRIVATE) != 0) _pthread_mutex_unlock(&m); } -- cgit v1.1