summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadattrinit.c
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2014-01-31 08:54:45 -0600
committerJennifer Averett <jennifer.averett@oarcorp.com>2014-03-07 09:10:33 -0600
commit185e46f6a05295755f0f4522cf44c93ec8cbd7d1 (patch)
tree05571a7fb077cf768913b7403a834baee89ab07c /cpukit/posix/src/pthreadattrinit.c
parentrtems: Add Classic API get and set affinity methods. (diff)
downloadrtems-185e46f6a05295755f0f4522cf44c93ec8cbd7d1.tar.bz2
posix: Add POSIX thread affinity attribute support.
With the addition of pthread affinity information in pthread_attr_t, the existing code for pthread_attr_t had to be adjusted.
Diffstat (limited to 'cpukit/posix/src/pthreadattrinit.c')
-rw-r--r--cpukit/posix/src/pthreadattrinit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreadattrinit.c b/cpukit/posix/src/pthreadattrinit.c
index cf0ecabfe9..3dc66449f9 100644
--- a/cpukit/posix/src/pthreadattrinit.c
+++ b/cpukit/posix/src/pthreadattrinit.c
@@ -34,6 +34,7 @@ int pthread_attr_init(
if ( !attr )
return EINVAL;
- *attr = _POSIX_Threads_Default_attributes;
- return 0;
+ _POSIX_Threads_Initialize_attributes( attr );
+
+ return 0;
}