From 523fcb36a8a5383867b0184dbdd1e5c8ce9adf74 Mon Sep 17 00:00:00 2001 From: davidxu Date: Fri, 2 Jun 2006 08:37:01 +0000 Subject: Remove unused member field m_queue. --- lib/libthr/thread/thr_mutex.c | 6 +----- 1 file changed, 1 insertion(+), 5 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 e79e014..5c47a73 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -118,7 +118,6 @@ mutex_init(pthread_mutex_t *mutex, _thr_umtx_init(&pmutex->m_lock); pmutex->m_type = attr->m_type; pmutex->m_protocol = attr->m_protocol; - TAILQ_INIT(&pmutex->m_queue); pmutex->m_owner = NULL; pmutex->m_flags = attr->m_flags | MUTEX_FLAGS_INITED; if (private) @@ -187,7 +186,6 @@ int _mutex_reinit(pthread_mutex_t *mutex) { _thr_umtx_init(&(*mutex)->m_lock); - TAILQ_INIT(&(*mutex)->m_queue); MUTEX_INIT_LINK(*mutex); (*mutex)->m_owner = NULL; (*mutex)->m_count = 0; @@ -238,9 +236,7 @@ _pthread_mutex_destroy(pthread_mutex_t *mutex) * in use. Mostly for prority mutex types, or there * are condition variables referencing it. */ - if (((*mutex)->m_owner != NULL) || - (TAILQ_FIRST(&(*mutex)->m_queue) != NULL) || - ((*mutex)->m_refcount != 0)) { + if ((*mutex)->m_owner != NULL || (*mutex)->m_refcount != 0) { THR_UMTX_UNLOCK(curthread, &(*mutex)->m_lock); ret = EBUSY; } else { -- cgit v1.1