diff options
Diffstat (limited to 'cpukit/score/inline/rtems/score/threadmp.inl')
-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 |