2010-06-07 19:10:55 +02:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
//
|
2012-09-17 23:21:01 +01:00
|
|
|
// $Id: Message_Queue_Vx.inl 96017 2012-08-08 22:18:09Z mitza $
|
2010-06-07 19:10:55 +02:00
|
|
|
|
|
|
|
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
|
|
|
|
|
|
|
|
|
#if defined (ACE_VXWORKS)
|
|
|
|
|
// Specialization to use native VxWorks Message Queues.
|
|
|
|
|
|
|
|
|
|
ACE_INLINE MSG_Q_ID
|
|
|
|
|
ACE_Message_Queue_Vx::msgq (void)
|
|
|
|
|
{
|
|
|
|
|
// Hijack the tail_ field to store the MSG_Q_ID.
|
2012-09-17 23:21:01 +01:00
|
|
|
return static_cast<MSG_Q_ID> (reinterpret_cast<long> (tail_));
|
2010-06-07 19:10:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif /* ACE_VXWORKS */
|
|
|
|
|
|
|
|
|
|
ACE_END_VERSIONED_NAMESPACE_DECL
|