2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 #if defined (ACE_VXWORKS)
5 // Specialization to use native VxWorks Message Queues.
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_)
16 reinterpret_cast<int> (tail_)
18 reinterpret_cast<MSG_Q_ID> (tail_)
24 ACE_Message_Queue_Vx::peek_dequeue_head (ACE_Message_Block *&,
27 ACE_NOTSUP_RETURN (-1);
30 #endif /* ACE_VXWORKS */
32 ACE_END_VERSIONED_NAMESPACE_DECL