summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_init.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-03-27 23:50:21 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-03-27 23:50:21 +0000
commit255936645ee180cbe2421e975b37ca5a0b909f0d (patch)
treeb9c60d754d927cc2bd40ebcb206e1e116909d312 /lib/libthr/thread/thr_init.c
parent6bf81397d76889cb68aea5b4919132591916e638 (diff)
downloadFreeBSD-src-255936645ee180cbe2421e975b37ca5a0b909f0d.zip
FreeBSD-src-255936645ee180cbe2421e975b37ca5a0b909f0d.tar.gz
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
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r--lib/libthr/thread/thr_init.c3
1 files changed, 1 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud