From 58fc7458afc685c30fd4c4210ca26cd4792c13ae Mon Sep 17 00:00:00 2001 From: davidxu Date: Mon, 28 Aug 2006 04:52:50 +0000 Subject: 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. --- lib/libthr/thread/thr_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libthr/thread/thr_init.c') 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; -- cgit v1.1