From 26f5aa0598cfb5df9457b1a26458079caa2201cb Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Sep 2008 14:50:10 +0000 Subject: 2008-09-05 Joel Sherrill * score/include/rtems/score/mpci.h, score/inline/rtems/score/threadmp.inl, score/src/mpci.c: Eliminate dependencies between MP .h files. --- cpukit/score/inline/rtems/score/threadmp.inl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'cpukit/score/inline/rtems/score/threadmp.inl') 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 -- cgit v1.2.3