[PATCH 08/25] posix: Use _Thread_Get_executing()

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 18 14:25:56 UTC 2013


---
 cpukit/posix/src/pthreadcreate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index 53e4cdd..118dcaf 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -94,7 +94,7 @@ int pthread_create(
    */
   switch ( the_attr->inheritsched ) {
     case PTHREAD_INHERIT_SCHED:
-      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
+      api = _Thread_Get_executing()->API_Extensions[ THREAD_API_POSIX ];
       schedpolicy = api->schedpolicy;
       schedparam  = api->schedparam;
       break;
-- 
1.7.7




More information about the devel mailing list