From a6c50de14000f5f199ad7e755bf97164ec2e6596 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 19 Mar 2008 08:13:04 +0000 Subject: - Trim trailing spaces. - Use a different sigmask variable name to avoid confusing. --- lib/libthr/thread/thr_create.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/libthr/thread/thr_create.c') diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index c7953c6..2e7a841 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -156,10 +156,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, if (new_thread->attr.sched_inherit == PTHREAD_INHERIT_SCHED) param.rtp = NULL; else { - sched_param.sched_priority = new_thread->attr.prio; - _schedparam_to_rtp(new_thread->attr.sched_policy, - &sched_param, &rtp); - param.rtp = &rtp; + sched_param.sched_priority = new_thread->attr.prio; + _schedparam_to_rtp(new_thread->attr.sched_policy, + &sched_param, &rtp); + param.rtp = &rtp; } /* Schedule the new thread. */ @@ -264,11 +264,11 @@ thread_start(struct pthread *curthread) _pthread_exit(PTHREAD_CANCELED); if (curthread->unblock_sigcancel) { - sigset_t set; + sigset_t set1; - SIGEMPTYSET(set); - SIGADDSET(set, SIGCANCEL); - __sys_sigprocmask(SIG_UNBLOCK, &set, NULL); + SIGEMPTYSET(set1); + SIGADDSET(set1, SIGCANCEL); + __sys_sigprocmask(SIG_UNBLOCK, &set1, NULL); } if (curthread->attr.suspend == THR_CREATE_SUSPENDED) { -- cgit v1.1