diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-01-31 08:54:45 -0600 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2014-03-07 09:10:33 -0600 |
commit | 185e46f6a05295755f0f4522cf44c93ec8cbd7d1 (patch) | |
tree | 05571a7fb077cf768913b7403a834baee89ab07c /cpukit/posix/src/pthreadattrinit.c | |
parent | rtems: Add Classic API get and set affinity methods. (diff) | |
download | rtems-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.c | 5 |
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; } |