diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-03-19 08:13:04 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-03-19 08:13:04 +0000 |
commit | a6c50de14000f5f199ad7e755bf97164ec2e6596 (patch) | |
tree | 9cf7115c26d484250d7579769cc00928f7f546d5 /lib/libthr | |
parent | da476acd461cbe99d37a8ea450f5a196a5791554 (diff) | |
download | FreeBSD-src-a6c50de14000f5f199ad7e755bf97164ec2e6596.zip FreeBSD-src-a6c50de14000f5f199ad7e755bf97164ec2e6596.tar.gz |
- Trim trailing spaces.
- Use a different sigmask variable name to avoid confusing.
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/thread/thr_create.c | 16 |
1 files changed, 8 insertions, 8 deletions
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) { |