summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 08:38:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 10:21:03 +0200
commit2be22d4f6478e80cd7df05b888650d1563d2b504 (patch)
tree02c2a63bb19f4518b717472e1e1afd4da072a4a8 /cpukit/posix/src
parent2fcea4c47325578d887d2c061a86e5e178d7a32a (diff)
downloadrtems-2be22d4f6478e80cd7df05b888650d1563d2b504.tar.bz2
posix: Move POSIX_API_Control::thread
This member is only used by the sporadic server support. Update #2514.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r--cpukit/posix/src/pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 9d1c1ad012..291b19532d 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -49,7 +49,7 @@ void _POSIX_Threads_Sporadic_timer( Watchdog_Control *watchdog )
Thread_queue_Context queue_context;
api = RTEMS_CONTAINER_OF( watchdog, POSIX_API_Control, Sporadic.Timer );
- the_thread = api->thread;
+ the_thread = api->Sporadic.thread;
_Thread_queue_Context_initialize( &queue_context );
_Thread_queue_Context_clear_priority_updates( &queue_context );
@@ -127,7 +127,6 @@ static bool _POSIX_Threads_Create_extension(
api = created->API_Extensions[ THREAD_API_POSIX ];
/* XXX check all fields are touched */
- api->thread = created;
api->schedparam.sched_priority = _POSIX_Priority_From_core(
_Thread_Scheduler_get_home( created ),
_Thread_Get_priority( created )
@@ -149,6 +148,7 @@ static bool _POSIX_Threads_Create_extension(
api->signals_unblocked = executing_api->signals_unblocked;
}
+ api->Sporadic.thread = created;
_Watchdog_Preinitialize( &api->Sporadic.Timer, _Per_CPU_Get_by_index( 0 ) );
_Watchdog_Initialize( &api->Sporadic.Timer, _POSIX_Threads_Sporadic_timer );
_Priority_Node_set_inactive( &api->Sporadic.Low_priority );