diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-14 09:31:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-05-14 09:37:19 +0200 |
commit | 57be57c79969b2f27580bc9af6fb2b14f321ab19 (patch) | |
tree | b086f331745b8eba5f7aa29ac7e7d8009b048e16 /cpukit/score/src | |
parent | rtems: Check entry point in rtems_task_start() (diff) | |
download | rtems-57be57c79969b2f27580bc9af6fb2b14f321ab19.tar.bz2 |
score: Return status in _Thread_Restart_other()
This simplifies rtems_task_restart().
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 364d67d04e..dcbf11c713 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -524,7 +524,7 @@ void _Thread_Exit( _Thread_State_release( executing, &lock_context ); } -bool _Thread_Restart_other( +Status_Control _Thread_Restart_other( Thread_Control *the_thread, const Thread_Entry_information *entry, ISR_lock_Context *lock_context @@ -537,7 +537,7 @@ bool _Thread_Restart_other( if ( _States_Is_dormant( the_thread->current_state ) ) { _Thread_State_release( the_thread, lock_context ); - return false; + return STATUS_INCORRECT_STATE; } the_thread->Start.Entry = *entry; @@ -564,7 +564,7 @@ bool _Thread_Restart_other( } _Thread_Dispatch_enable( cpu_self ); - return true; + return STATUS_SUCCESSFUL; } void _Thread_Restart_self( |