diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-11-09 20:41:18 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-11-09 20:41:18 +0000 |
commit | e6745a8a2bfecafcda416cecff6d89a308f6e88f (patch) | |
tree | 9a1eb75c5bdad86d3ca98c7541ff531e441925cf /protocols/ace/TMCast/Messaging.hpp | |
parent | 1382cb3afa9d44bb528b79cd43d4eec93d3c660f (diff) | |
download | ATCD-swapping.tar.gz |
This commit was manufactured by cvs2svn to create branch 'swapping'.swapping
Diffstat (limited to 'protocols/ace/TMCast/Messaging.hpp')
-rw-r--r-- | protocols/ace/TMCast/Messaging.hpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/protocols/ace/TMCast/Messaging.hpp b/protocols/ace/TMCast/Messaging.hpp deleted file mode 100644 index 6a1000c3265..00000000000 --- a/protocols/ace/TMCast/Messaging.hpp +++ /dev/null @@ -1,54 +0,0 @@ -// file : TMCast/Messaging.hpp -// author : Boris Kolpackov <boris@dre.vanderbilt.edu> -// cvs-id : $Id$ - -#ifndef TMCAST_MESSAGING_HPP -#define TMCAST_MESSAGING_HPP - -#include <ace/Synch.h> -#include <ace/Refcounted_Auto_Ptr.h> - -#include "MTQueue.hpp" - -namespace TMCast -{ - class Message - { - public: - virtual - ~Message () {} - }; - - typedef - ACE_Refcounted_Auto_Ptr<Message, ACE_Null_Mutex> - MessagePtr; - - typedef - MTQueue<MessagePtr, ACE_Thread_Mutex, ACE_Condition<ACE_Thread_Mutex> > - MessageQueue; - - struct MessageQueueAutoLock - { - MessageQueueAutoLock (MessageQueue& q) - : q_ (q) - { - q_.lock (); - } - - void - unlock () - { - q_.unlock (); - } - - ~MessageQueueAutoLock () - { - q_.unlock (); - } - - private: - MessageQueue& q_; - }; -} - -#endif // TMCAST_MESSAGING_HPP |