Axe unused member field.

This commit is contained in:
David Xu 2006-08-08 05:04:43 +00:00
parent 6b73f08519
commit 065dbdc130
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161069
2 changed files with 2 additions and 12 deletions

View file

@ -128,7 +128,6 @@ mutex_init(pthread_mutex_t *mutex,
pmutex->m_prio = attr->m_ceiling;
else
pmutex->m_prio = -1;
pmutex->m_saved_prio = 0;
MUTEX_INIT_LINK(pmutex);
*mutex = pmutex;
return (0);
@ -191,7 +190,6 @@ _mutex_reinit(pthread_mutex_t *mutex)
(*mutex)->m_count = 0;
(*mutex)->m_refcount = 0;
(*mutex)->m_prio = 0;
(*mutex)->m_saved_prio = 0;
return (0);
}

View file

@ -121,18 +121,10 @@ struct pthread_mutex {
int m_refcount;
/*
* Used for priority inheritence and protection.
*
* m_prio - For priority inheritence, the highest active
* priority (threads locking the mutex inherit
* this priority). For priority protection, the
* ceiling priority of this mutex.
* m_saved_prio - mutex owners inherited priority before
* taking the mutex, restored when the owner
* unlocks the mutex.
* Used for priority protection, the ceiling priority of
* this mutex.
*/
int m_prio;
int m_saved_prio;
/*
* Link for list of all mutexes a thread currently owns.