diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-15 19:27:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-15 19:27:46 +0000 |
commit | 59eb1254adb500437d6f7d88102e49bc36061d04 (patch) | |
tree | fb8208899faa4a45e9c0f3cc798f735c1e196784 /cpukit/score/include/rtems/score/thread.h | |
parent | 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-59eb1254adb500437d6f7d88102e49bc36061d04.tar.bz2 |
2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/score/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 73203eacc3..8754ee931d 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -697,19 +697,16 @@ void _Thread_Set_priority( * This routine updates the related suspend fields in the_thread * control block to indicate the current nested level. */ -void _Thread_Suspend( - Thread_Control *the_thread -); +#define _Thread_Suspend( _the_thread ) \ + _Thread_Set_state( _the_thread, STATES_SUSPENDED ) /** * This routine updates the related suspend fields in the_thread * control block to indicate the current nested level. A force * parameter of true will force a resume and clear the suspend count. */ -void _Thread_Resume( - Thread_Control *the_thread, - bool force -); +#define _Thread_Resume( _the_thread ) \ + _Thread_Clear_state( _the_thread, STATES_SUSPENDED ) #if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE) /** |