diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-09-06 04:04:10 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-09-06 04:04:10 +0000 |
commit | 21e453602609114dd397ffe11541b88ac47cbde4 (patch) | |
tree | 7044b040d8f18506b5f3294848fd18b67eaf0bd2 /lib/libthr/thread/thr_list.c | |
parent | 670deaece645da636be8d143eb99b79497386ec3 (diff) | |
download | FreeBSD-src-21e453602609114dd397ffe11541b88ac47cbde4.zip FreeBSD-src-21e453602609114dd397ffe11541b88ac47cbde4.tar.gz |
Replace internal usage of struct umtx with umutex which can supports
real-time if we want, no functionality is changed.
Diffstat (limited to 'lib/libthr/thread/thr_list.c')
-rw-r--r-- | lib/libthr/thread/thr_list.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libthr/thread/thr_list.c b/lib/libthr/thread/thr_list.c index 56f5972..d85771d 100644 --- a/lib/libthr/thread/thr_list.c +++ b/lib/libthr/thread/thr_list.c @@ -59,8 +59,8 @@ * after a fork(). */ static TAILQ_HEAD(, pthread) free_threadq; -static umtx_t free_thread_lock; -static umtx_t tcb_lock; +static struct umutex free_thread_lock = DEFAULT_UMUTEX; +static struct umutex tcb_lock = DEFAULT_UMUTEX; static int free_thread_count = 0; static int inited = 0; static int total_threads; @@ -79,11 +79,11 @@ _thr_list_init(void) _gc_count = 0; total_threads = 1; - _thr_umtx_init(&_thr_list_lock); + _thr_umutex_init(&_thr_list_lock); TAILQ_INIT(&_thread_list); TAILQ_INIT(&free_threadq); - _thr_umtx_init(&free_thread_lock); - _thr_umtx_init(&tcb_lock); + _thr_umutex_init(&free_thread_lock); + _thr_umutex_init(&tcb_lock); if (inited) { for (i = 0; i < HASH_QUEUES; ++i) LIST_INIT(&thr_hashtable[i]); |