/* -*- C++ -*- */ // Typed_SV_Message_Queue.i,v 4.4 2000/07/20 23:31:31 schmidt Exp // Typed_SV_Message_Queue.i #include "ace/SV_Message_Queue.h" template ACE_INLINE int ACE_Typed_SV_Message_Queue::open (key_t external_id, int create, int perms) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::open"); return this->message_queue_.open (external_id, create, perms); } // What does it mean to close a message queue?! template ACE_INLINE int ACE_Typed_SV_Message_Queue::close (void) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::close"); return 1; } template ACE_INLINE int ACE_Typed_SV_Message_Queue::recv (ACE_Typed_SV_Message &mb, int mflags) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::recv"); int length = this->message_queue_.recv (ACE_reinterpret_cast (ACE_SV_Message &, mb), mb.max_size (), mb.type (), mflags); if (length != -1) mb.length (length); return length; } template ACE_INLINE int ACE_Typed_SV_Message_Queue::send (const ACE_Typed_SV_Message &mb, int mflags) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::send"); return this->message_queue_. send (ACE_reinterpret_cast (ACE_SV_Message &, ACE_const_cast (ACE_Typed_SV_Message &, mb)), mb.length (), mflags); } template ACE_INLINE int ACE_Typed_SV_Message_Queue::remove (void) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::remove"); return this->message_queue_.remove (); } template ACE_INLINE int ACE_Typed_SV_Message_Queue::control (int option, void *arg) { ACE_TRACE ("ACE_Typed_SV_Message_Queue::control"); return this->message_queue_.control (option, arg); } template ACE_INLINE int ACE_Typed_SV_Message_Queue::get_id (void) const { return this->message_queue_.get_id (); }