[rtems commit] pthreadimpl.h: Conditionalize thread affinity copying

Joel Sherrill joel at rtems.org
Thu Apr 3 21:54:54 UTC 2014


Module:    rtems
Branch:    master
Commit:    69d7279bd57b45e274a8c1aee39d58e746a1182c
Changeset: http://git.rtems.org/rtems/commit/?id=69d7279bd57b45e274a8c1aee39d58e746a1182c

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu Apr  3 17:02:40 2014 -0500

pthreadimpl.h: Conditionalize thread affinity copying

---

 cpukit/posix/include/rtems/posix/pthreadimpl.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h
index d4a04e1..af5ddab 100644
--- a/cpukit/posix/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h
@@ -221,7 +221,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
 )
 {
   *dst_attr = *src_attr;
-#if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
+#if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
   _Assert(
     dst_attr->affinitysetsize == sizeof(dst_attr->affinitysetpreallocated)
   );




More information about the vc mailing list