Changeset 59eb125 in rtems


Ignore:
Timestamp:
Mar 15, 2011, 7:27:46 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
d75792b
Parents:
d15c084
Message:

2011-03-15 Joel Sherrill <joel.sherrill@…>

  • rtems/src/taskresume.c, score/Makefile.am, score/include/rtems/score/thread.h: Convert _Thread_Resume and _Thread_Suspend into macros.
  • score/src/threadresume.c, score/src/threadsuspend.c: Removed.
Location:
cpukit
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd15c084 r59eb125  
     12011-03-15      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * rtems/src/taskresume.c, score/Makefile.am,
     4        score/include/rtems/score/thread.h: Convert _Thread_Resume and
     5        _Thread_Suspend into macros.
     6        * score/src/threadresume.c, score/src/threadsuspend.c: Removed.
     7
    182011-03-15      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • cpukit/rtems/src/taskresume.c

    rd15c084 r59eb125  
    6060    case OBJECTS_LOCAL:
    6161      if ( _States_Is_suspended( the_thread->current_state ) ) {
    62         _Thread_Resume( the_thread, true );
     62        _Thread_Resume( the_thread );
    6363        _Thread_Enable_dispatch();
    6464        return RTEMS_SUCCESSFUL;
  • cpukit/score/Makefile.am

    rd15c084 r59eb125  
    168168    src/threadget.c src/threadhandler.c src/threadinitialize.c \
    169169    src/threadloadenv.c src/threadready.c src/threadreset.c \
    170     src/threadrestart.c src/threadresume.c src/threadsetpriority.c \
     170    src/threadrestart.c src/threadsetpriority.c \
    171171    src/threadsetstate.c src/threadsettransient.c \
    172172    src/threadstackallocate.c src/threadstackfree.c src/threadstart.c \
    173     src/threadstartmultitasking.c src/threadsuspend.c \
    174     src/threadtickletimeslice.c \
     173    src/threadstartmultitasking.c src/threadtickletimeslice.c \
    175174    src/iterateoverthreads.c src/threadblockingoperationcancel.c
    176175
  • cpukit/score/include/rtems/score/thread.h

    rd15c084 r59eb125  
    698698 *  control block to indicate the current nested level.
    699699 */
    700 void _Thread_Suspend(
    701   Thread_Control   *the_thread
    702 );
     700#define _Thread_Suspend( _the_thread ) \
     701        _Thread_Set_state( _the_thread, STATES_SUSPENDED )
    703702
    704703/**
     
    707706 *  parameter of true will force a resume and clear the suspend count.
    708707 */
    709 void _Thread_Resume(
    710   Thread_Control   *the_thread,
    711   bool              force
    712 );
     708#define _Thread_Resume( _the_thread ) \
     709        _Thread_Clear_state( _the_thread, STATES_SUSPENDED )
    713710
    714711#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
Note: See TracChangeset for help on using the changeset viewer.