Changeset 57be57c7 in rtems for cpukit/rtems/src/taskrestart.c


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/rtems/src/taskrestart.c

    rb87d2a6 r57be57c7  
    2222
    2323#include <rtems/rtems/tasks.h>
     24#include <rtems/rtems/statusimpl.h>
    2425#include <rtems/score/threadimpl.h>
    2526
     
    3233  ISR_lock_Context          lock_context;
    3334  Thread_Entry_information  entry;
    34   bool                      ok;
     35  Status_Control            status;
    3536
    3637  the_thread = _Thread_Get( id, &lock_context );
     
    5455  }
    5556
    56   ok = _Thread_Restart_other( the_thread, &entry, &lock_context );
     57  status = _Thread_Restart_other( the_thread, &entry, &lock_context );
    5758
    58   return ok ? RTEMS_SUCCESSFUL : RTEMS_INCORRECT_STATE;
     59  return _Status_Get( status );
    5960}
Note: See TracChangeset for help on using the changeset viewer.