[PATCH 8/9] rtems, posix: Use _Thread_Get_executing()

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jul 17 14:18:59 UTC 2013


---
 cpukit/posix/src/pthreadself.c |    2 +-
 cpukit/rtems/src/taskident.c   |    2 +-
 cpukit/rtems/src/taskself.c    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/posix/src/pthreadself.c b/cpukit/posix/src/pthreadself.c
index de6a409..f1b13d8 100644
--- a/cpukit/posix/src/pthreadself.c
+++ b/cpukit/posix/src/pthreadself.c
@@ -28,5 +28,5 @@
 
 pthread_t pthread_self( void )
 {
-  return _Thread_Executing->Object.id;
+  return _Thread_Get_executing()->Object.id;
 }
diff --git a/cpukit/rtems/src/taskident.c b/cpukit/rtems/src/taskident.c
index 2c30909..5d5f5bf 100644
--- a/cpukit/rtems/src/taskident.c
+++ b/cpukit/rtems/src/taskident.c
@@ -45,7 +45,7 @@ rtems_status_code rtems_task_ident(
     return RTEMS_INVALID_ADDRESS;
 
   if ( name == OBJECTS_ID_OF_SELF ) {
-    *id = _Thread_Executing->Object.id;
+    *id = _Thread_Get_executing()->Object.id;
     return RTEMS_SUCCESSFUL;
    }
 
diff --git a/cpukit/rtems/src/taskself.c b/cpukit/rtems/src/taskself.c
index c13e14c..6fa2335 100644
--- a/cpukit/rtems/src/taskself.c
+++ b/cpukit/rtems/src/taskself.c
@@ -23,5 +23,5 @@
 
 rtems_id rtems_task_self(void)
 {
-   return _Thread_Executing->Object.id;
+   return _Thread_Get_executing()->Object.id;
 }
-- 
1.7.7




More information about the devel mailing list