Changeset c21c5912 in rtems


Ignore:
Timestamp:
05/14/14 09:11:05 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
0f41cc3
Parents:
01f302b
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/14 09:11:05)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/14/14 14:49:27)
Message:

score: Add STATES_RESTARTING

Use separate state for thread restart.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-prmisc.c

    r01f302b rc21c5912  
    139139    { "ZOMBI",  STATES_ZOMBIE, 0 },
    140140    { "MIGRA",  STATES_MIGRATING, 0 },
     141    { "RESTA",  STATES_RESTARTING, 0 },
    141142    { 0, 0, 0 },
    142143};
  • cpukit/score/include/rtems/score/statesimpl.h

    r01f302b rc21c5912  
    8585/** This macro corresponds to a task migrating to another scheduler. */
    8686#define STATES_MIGRATING                       0x400000
     87/** This macro corresponds to a task restarting. */
     88#define STATES_RESTARTING                      0x800000
    8789
    8890/** This macro corresponds to a task which is in an interruptible
  • cpukit/score/src/threadrestart.c

    r01f302b rc21c5912  
    225225  the_thread->real_priority    = priority;
    226226
    227   _Thread_Set_transient( the_thread );
     227  _Thread_Set_state( the_thread, STATES_RESTARTING );
    228228  _Thread_queue_Extract_with_proxy( the_thread );
    229229  _Watchdog_Remove( &the_thread->Timer );
Note: See TracChangeset for help on using the changeset viewer.