summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-14 09:31:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-14 09:37:19 +0200
commit57be57c79969b2f27580bc9af6fb2b14f321ab19 (patch)
treeb086f331745b8eba5f7aa29ac7e7d8009b048e16 /cpukit/include
parentrtems: Check entry point in rtems_task_start() (diff)
downloadrtems-57be57c79969b2f27580bc9af6fb2b14f321ab19.tar.bz2
score: Return status in _Thread_Restart_other()
This simplifies rtems_task_restart().
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/score/threadimpl.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index ba7c159962..8674a3f2b3 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -286,14 +286,17 @@ RTEMS_NO_RETURN void _Thread_Restart_self(
/**
* @brief Restarts the thread.
*
- * @param[in, out] the_thread The thread to restart.
- * @param entry The start entry information for @a the_thread.
- * @param lock_context The lock context.
+ * @param[in, out] the_thread is the thread to restart.
+ *
+ * @param entry is the new start entry information for the thread to restart.
+ *
+ * @param[in, out] lock_context is the lock context with interrupts disabled.
+ *
+ * @retval STATUS_SUCCESSFUL The operation was successful.
*
- * @retval true The operation was successful.
- * @retval false The operation failed.
+ * @retval STATUS_INCORRECT_STATE The thread was dormant.
*/
-bool _Thread_Restart_other(
+Status_Control _Thread_Restart_other(
Thread_Control *the_thread,
const Thread_Entry_information *entry,
ISR_lock_Context *lock_context