diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 14:50:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-05 14:50:10 +0000 |
commit | 26f5aa0598cfb5df9457b1a26458079caa2201cb (patch) | |
tree | 343ad035ee7d40d75d0da311b8d37d9d7f34a07d /cpukit/score/inline/rtems/score/threadmp.inl | |
parent | 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-26f5aa0598cfb5df9457b1a26458079caa2201cb.tar.bz2 |
2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/mpci.h,
score/inline/rtems/score/threadmp.inl, score/src/mpci.c: Eliminate
dependencies between MP .h files.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/inline/rtems/score/threadmp.inl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/score/inline/rtems/score/threadmp.inl b/cpukit/score/inline/rtems/score/threadmp.inl index c54a22ba3b..648ed0e1d2 100644 --- a/cpukit/score/inline/rtems/score/threadmp.inl +++ b/cpukit/score/inline/rtems/score/threadmp.inl @@ -33,14 +33,12 @@ /** * This function returns true if the thread in question is the * multiprocessing receive thread. + * + * @note This is a macro to avoid needing a prototype for + * _MPCI_Receive_server_tcb until it is used. */ - -RTEMS_INLINE_ROUTINE bool _Thread_MP_Is_receive ( - Thread_Control *the_thread -) -{ - return the_thread == _MPCI_Receive_server_tcb; -} +#define _Thread_MP_Is_receive(_the_thread) \ + (_the_thread == _MPCI_Receive_server_tcb) /** * This routine frees a proxy control block to the |