rtems, posix: Use _Thread_Get_executing()

This commit is contained in:
Sebastian Huber
2013-07-17 16:12:19 +02:00
parent 95e09afa92
commit 401f1b9d56
5 changed files with 5 additions and 5 deletions

View File

@@ -28,5 +28,5 @@
pthread_t pthread_self( void )
{
return _Thread_Executing->Object.id;
return _Thread_Get_executing()->Object.id;
}

View File

@@ -31,7 +31,7 @@ rtems_status_code rtems_event_receive(
rtems_status_code sc;
if ( event_out != NULL ) {
Thread_Control *executing = _Thread_Executing;
Thread_Control *executing = _Thread_Get_executing();
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
Event_Control *event = &api->Event;

View File

@@ -37,7 +37,7 @@ rtems_status_code rtems_event_system_receive(
rtems_status_code sc;
if ( event_out != NULL ) {
Thread_Control *executing = _Thread_Executing;
Thread_Control *executing = _Thread_Get_executing();
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
Event_Control *event = &api->System_event;

View File

@@ -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;
}

View File

@@ -23,5 +23,5 @@
rtems_id rtems_task_self(void)
{
return _Thread_Executing->Object.id;
return _Thread_Get_executing()->Object.id;
}