Axe unused member field.
This commit is contained in:
parent
6b73f08519
commit
065dbdc130
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user