summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-17 14:46:02 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-26 13:40:24 +0200
commit3cef3198a560d2c9e16afb81f97e05bdc6f13a01 (patch)
tree767704c9062af074884eba3907bcaf0709712aec /cpukit/include/rtems/score
parentrtems: Return RTEMS_CALLED_FROM_ISR (diff)
downloadrtems-3cef3198a560d2c9e16afb81f97e05bdc6f13a01.tar.bz2
score: Simplify calling _Thread_Exit()
Move common code into _Thread_Exit(). This enables a tail call optimization in most cases.
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/threadimpl.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 1a5e391677..ecc8eee058 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -339,14 +339,13 @@ void _Thread_Kill_zombies( void );
/**
* @brief Exits the currently executing thread.
*
- * @param[in, out] executing The currently executing thread.
- * @param life_states_to_set The states to set.
- * @param[out] exit_value Contains the exit value of the thread.
+ * @param exit_value is the exit value of the thread.
+ *
+ * @param life_states_to_set are the thread life states to set.
*/
-void _Thread_Exit(
- Thread_Control *executing,
- Thread_Life_state life_states_to_set,
- void *exit_value
+RTEMS_NO_RETURN void _Thread_Exit(
+ void *exit_value,
+ Thread_Life_state life_states_to_set
);
/**