From 8ab9d78b9d33db67d108d1553fe3b1665ecc017f Mon Sep 17 00:00:00 2001 From: David Xu 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 5d1aae5672fc..267df4935ab2 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.2.3