diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-07-13 22:45:19 +0000 | 
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-07-13 22:45:19 +0000 | 
| commit | e2dc286c1c5ae8ec8ef872d9a3c9e6f0d9cebe83 (patch) | |
| tree | 38d9ff271ff8237cbfb86fa05d16da871f8e0dd2 /lib/libthr/thread/thr_create.c | |
| parent | 86ed3c25e1c01f18591725b2996b882cde3d64bb (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
| -rw-r--r-- | lib/libthr/thread/thr_create.c | 7 | 
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)  | 
