Changeset 94b3ec59 in rtems for c/src/exec/score/src/thread.c


Ignore:
Timestamp:
02/13/96 22:14:48 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
da646dd
Parents:
6ca1184
Message:

changed post task extension from user set to api set and added flag
in each thread which must be set when the post switch extension is to be run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/thread.c

    r6ca1184 r94b3ec59  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/score/apiext.h>
    1718#include <rtems/score/context.h>
    1819#include <rtems/score/interr.h>
     
    201202  _ISR_Enable( level );
    202203
    203   _User_extensions_Thread_post_switch( executing );
     204  if ( executing->do_post_task_switch_extension ) {
     205    executing->do_post_task_switch_extension = FALSE;
     206    _API_extensions_Run_postswitch();
     207  }
    204208 
    205209}
     
    814818  }
    815819
     820  the_thread->do_post_task_switch_extension = FALSE;
    816821  the_thread->is_preemptible = the_thread->Start.is_preemptible;
    817822  the_thread->is_timeslice   = the_thread->Start.is_timeslice;
Note: See TracChangeset for help on using the changeset viewer.