diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-26 13:36:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-27 19:40:13 +0200 |
commit | bbc93c119c72f981b5091fa06aea5e7369b79a59 (patch) | |
tree | 6c637a0cbfd20e32a2076395034014538de7c561 /cpukit/include/rtems | |
parent | Return status code for _Scheduler_Set_affinity() (diff) | |
download | rtems-bbc93c119c72f981b5091fa06aea5e7369b79a59.tar.bz2 |
Return status code for _Thread_Start()
This avoids having conditional statements to get the API-specific status
code.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index d9c0779b08..5dfd142b92 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -260,12 +260,11 @@ void _Thread_Free( * @param[in, out] is the ISR lock context which shall be used to disable the * local interrupts before the call of this routine. * - * @retval true The thread was in the dormant state and was sucessefully - * started. + * @retval STATUS_SUCCESSFUL The thread start was successful. * - * @retval false Otherwise. + * @retval STATUS_INCORRECT_STATE The thread was already started. */ -bool _Thread_Start( +Status_Control _Thread_Start( Thread_Control *the_thread, const Thread_Entry_information *entry, ISR_lock_Context *lock_context |