summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/threadmp.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 14:50:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 14:50:10 +0000
commit26f5aa0598cfb5df9457b1a26458079caa2201cb (patch)
tree343ad035ee7d40d75d0da311b8d37d9d7f34a07d /cpukit/score/inline/rtems/score/threadmp.inl
parent2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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 'cpukit/score/inline/rtems/score/threadmp.inl')
-rw-r--r--cpukit/score/inline/rtems/score/threadmp.inl12
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