// file : ACE_TMCast/Messaging.hpp // author : Boris Kolpackov // cvs-id : $Id$ #ifndef TMCAST_MESSAGING_HPP #define TMCAST_MESSAGING_HPP #include #include #include "MTQueue.hpp" namespace ACE_TMCast { class Message { public: virtual ~Message () {} }; typedef ACE_Strong_Bound_Ptr MessagePtr; typedef MTQueue > MessageQueue; struct MessageQueueAutoLock { MessageQueueAutoLock (MessageQueue& q) : q_ (q) { q_.lock (); } void unlock () { q_.unlock (); } ~MessageQueueAutoLock () { q_.unlock (); } private: MessageQueue& q_; }; } #endif // TMCAST_MESSAGING_HPP