diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-08-08 05:04:43 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-08-08 05:04:43 +0000 |
commit | c8a98491d0e75d27909b73e2c2807d1165087da1 (patch) | |
tree | 0eebfbfd723bbcf8773f873e5dbbe17e432bcd40 /lib | |
parent | cfa46376c709e58e6cdbe41e2d8674dc0ee29184 (diff) | |
download | FreeBSD-src-c8a98491d0e75d27909b73e2c2807d1165087da1.zip FreeBSD-src-c8a98491d0e75d27909b73e2c2807d1165087da1.tar.gz |
Axe unused member field.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 2 | ||||
-rw-r--r-- | lib/libthr/thread/thr_private.h | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 0e3cebe..7d5922a 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -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); } diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index bb6c999..4ec4208 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -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. |