From 255936645ee180cbe2421e975b37ca5a0b909f0d Mon Sep 17 00:00:00 2001 From: davidxu Date: Mon, 27 Mar 2006 23:50:21 +0000 Subject: Remove priority mutex code because it does not work correctly, to make it work, turnstile like mechanism to support priority propagating and other realtime scheduling options in kernel should be available to userland mutex, for the moment, I just want to make libthr be simple and efficient thread library. Discussed with: deischen, julian --- lib/libthr/thread/thr_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (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 2ddacc9..725ea4e 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -68,7 +68,7 @@ atfork_head _thr_atfork_list = TAILQ_HEAD_INITIALIZER(_thr_atfork_list); umtx_t _thr_atfork_lock; struct pthread_attr _pthread_attr_default = { - .sched_policy = SCHED_RR, + .sched_policy = SCHED_OTHER, .sched_inherit = 0, .sched_interval = TIMESLICE_USEC, .prio = THR_DEFAULT_PRIORITY, @@ -424,7 +424,6 @@ init_main_thread(struct pthread *thread) /* Initialize the mutex queue: */ TAILQ_INIT(&thread->mutexq); - TAILQ_INIT(&thread->pri_mutexq); thread->state = PS_RUNNING; -- cgit v1.1