diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-08-28 04:52:50 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-08-28 04:52:50 +0000 |
commit | 58fc7458afc685c30fd4c4210ca26cd4792c13ae (patch) | |
tree | aab98ede3e979d8c05c91281262d9ea7b281b2c2 /lib/libthr/thread/thr_init.c | |
parent | 77e7cda2cf95ba670c85a1965aff38d2f83b484a (diff) | |
download | FreeBSD-src-58fc7458afc685c30fd4c4210ca26cd4792c13ae.zip FreeBSD-src-58fc7458afc685c30fd4c4210ca26cd4792c13ae.tar.gz |
Use umutex APIs to implement pthread_mutex, member pp_mutexq is added
into pthread structure to keep track of locked PTHREAD_PRIO_PROTECT mutex,
no real mutex code is changed, the mutex locking and unlocking code should
has same performance as before.
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 5d1aae5..267df49 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -407,6 +407,7 @@ init_main_thread(struct pthread *thread) /* Initialize the mutex queue: */ TAILQ_INIT(&thread->mutexq); + TAILQ_INIT(&thread->pp_mutexq); thread->state = PS_RUNNING; |