Ignore:
Timestamp:
11/16/99 16:09:50 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
0cb7cb9
Parents:
88cb6b2
Message:

Now use _Thread_Reset().

File:
1 edited

Legend:

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

    r88cb6b2 rd3fdf459  
    3333 *  DESCRIPTION:
    3434 *
    35  *  XXX
     35 *  This support routine restarts the specified task in a way that the
     36 *  next time this thread executes, it will begin execution at its
     37 *  original starting point.
    3638 */
    3739 
     
    4547 
    4648    _Thread_Set_transient( the_thread );
    47     the_thread->resource_count   = 0;
    48     the_thread->suspend_count    = 0;
    49     the_thread->is_preemptible   = the_thread->Start.is_preemptible;
    50     the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
    51     the_thread->budget_callout   = the_thread->Start.budget_callout;
    5249
    53     the_thread->Start.pointer_argument = pointer_argument;
    54     the_thread->Start.numeric_argument = numeric_argument;
    55  
    56     if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
    57  
    58       if ( _Watchdog_Is_active( &the_thread->Timer ) )
    59         (void) _Watchdog_Remove( &the_thread->Timer );
    60     }
    61 
    62     if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
    63       the_thread->real_priority = the_thread->Start.initial_priority;
    64       _Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
    65     }
     50    _Thread_Reset( the_thread, pointer_argument, numeric_argument );
    6651 
    6752    _Thread_Load_environment( the_thread );
Note: See TracChangeset for help on using the changeset viewer.