From 185e46f6a05295755f0f4522cf44c93ec8cbd7d1 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Fri, 31 Jan 2014 08:54:45 -0600 Subject: 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. --- cpukit/posix/src/pthreadattrinit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/src/pthreadattrinit.c') 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; } -- cgit v1.2.3