diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-07-13 06:35:43 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-07-13 06:35:43 +0000 |
| commit | 561a89f9457194c9d92d6783eb091b1a9736dae3 (patch) | |
| tree | a578a4c69968927b0ae5c15efa30827ff9d1c6ef /lib/libthr/thread/thr_create.c | |
| parent | ba493ceb6bf95551b85cada1be47b5121b6bf0bc (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
| -rw-r--r-- | lib/libthr/thread/thr_create.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index e74278d2a1de..49e9b457fb84 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -144,9 +144,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, if (new_thread->attr.flags & PTHREAD_SCOPE_SYSTEM) param.flags |= THR_SYSTEM_SCOPE; if (new_thread->attr.sched_inherit == PTHREAD_INHERIT_SCHED) - param.sched = NULL; + param.sched_param = NULL; else { - param.sched = &sched_param; + param.sched_param = &sched_param; + param.sched_param_size = sizeof(sched_param); sched_param.policy = new_thread->attr.sched_policy; sched_param.param.sched_priority = new_thread->attr.prio; } |
