diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 10:53:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-31 08:29:43 +0200 |
commit | 8690b53c85b7465340c3af5739714aa2a478b64a (patch) | |
tree | 6c999268cd2b37ffe3b0d7d3bee850f7933397ac /cpukit/score/src/threadrestart.c | |
parent | score: Fix thread restart extensions context (diff) | |
download | rtems-8690b53c85b7465340c3af5739714aa2a478b64a.tar.bz2 |
score: Add parameter to _Thread_Restart()
The executing thread will be later used for a common implementation with
_Thread_Close().
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index a0416b802b..193c6aba70 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -60,7 +60,10 @@ static void _Thread_Reset( Thread_Control *the_thread ) } } -static void _Thread_Request_life_change( Thread_Control *the_thread ) +static void _Thread_Request_life_change( + Thread_Control *the_thread, + Thread_Control *executing +) { _Thread_Set_transient( the_thread ); @@ -75,6 +78,7 @@ static void _Thread_Request_life_change( Thread_Control *the_thread ) bool _Thread_Restart( Thread_Control *the_thread, + Thread_Control *executing, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) @@ -83,7 +87,10 @@ bool _Thread_Restart( the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; - _Thread_Request_life_change( the_thread ); + _Thread_Request_life_change( + the_thread, + executing + ); return true; } |