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_create.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libthr/thread/thr_create.c') diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index f0d7cd5..dc22fe3 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -107,6 +107,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, PTHREAD_CANCEL_DEFERRED; /* Initialize the mutex queue: */ TAILQ_INIT(&new_thread->mutexq); + TAILQ_INIT(&new_thread->pp_mutexq); /* Initialise hooks in the thread structure: */ if (new_thread->attr.suspend == THR_CREATE_SUSPENDED) { -- cgit v1.1