summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_create.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-07-13 22:45:19 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-07-13 22:45:19 +0000
commite2dc286c1c5ae8ec8ef872d9a3c9e6f0d9cebe83 (patch)
tree38d9ff271ff8237cbfb86fa05d16da871f8e0dd2 /lib/libthr/thread/thr_create.c
parent86ed3c25e1c01f18591725b2996b882cde3d64bb (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
-rw-r--r--lib/libthr/thread/thr_create.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c
index 49e9b457fb84..f0d7cd50077a 100644
--- a/lib/libthr/thread/thr_create.c
+++ b/lib/libthr/thread/thr_create.c
@@ -79,10 +79,9 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
new_thread->attr.flags |= PTHREAD_SCOPE_SYSTEM;
else
new_thread->attr.flags &= ~PTHREAD_SCOPE_SYSTEM;
- /*
- * scheduling policy and scheduling parameters will be
- * inherited in following code.
- */
+
+ new_thread->attr.prio = curthread->attr.prio;
+ new_thread->attr.sched_policy = curthread->attr.sched_policy;
}
if (_thr_scope_system > 0)