Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Message_Queue_Vx.inl
blob0e51325650f673b00f9839e9bd338af309730589
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 #if defined (ACE_VXWORKS)
5 // Specialization to use native VxWorks Message Queues.
6 ACE_INLINE MSG_Q_ID
7 ACE_Message_Queue_Vx::msgq ()
9   // Hijack the tail_ field to store the MSG_Q_ID.
10   return static_cast<MSG_Q_ID> (
11 #if defined __LP64__ && defined __RTP__
12   // In RTP-mode only MSG_Q_ID is an int; in a 64-bit build the size of MSG_Q_ID
13   // doesn't match the size of a pointer, tail_, so first treat it as 64-bit.
14                                 reinterpret_cast<long> (tail_)
15 #elif defined __RTP__
16                                 reinterpret_cast<int> (tail_)
17 #else
18                                 reinterpret_cast<MSG_Q_ID> (tail_)
19 #endif /* __RTP__ */
20                                 );
23 ACE_INLINE int
24 ACE_Message_Queue_Vx::peek_dequeue_head (ACE_Message_Block *&,
25                                          ACE_Time_Value *)
27   ACE_NOTSUP_RETURN (-1);
30 #endif /* ACE_VXWORKS */
32 ACE_END_VERSIONED_NAMESPACE_DECL