Ignore:
Timestamp:
May 14, 2021, 7:31:47 AM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b9083c55
Parents:
b87d2a6
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/21 07:31:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/21 07:37:19)
Message:

score: Return status in _Thread_Restart_other()

This simplifies rtems_task_restart().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadrestart.c

    rb87d2a6 r57be57c7  
    525525}
    526526
    527 bool _Thread_Restart_other(
     527Status_Control _Thread_Restart_other(
    528528  Thread_Control                 *the_thread,
    529529  const Thread_Entry_information *entry,
     
    538538  if ( _States_Is_dormant( the_thread->current_state ) ) {
    539539    _Thread_State_release( the_thread, lock_context );
    540     return false;
     540    return STATUS_INCORRECT_STATE;
    541541  }
    542542
     
    565565
    566566  _Thread_Dispatch_enable( cpu_self );
    567   return true;
     567  return STATUS_SUCCESSFUL;
    568568}
    569569
Note: See TracChangeset for help on using the changeset viewer.