diff options
Diffstat (limited to 'ace/Message_Block_T.cpp')
-rw-r--r-- | ace/Message_Block_T.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/ace/Message_Block_T.cpp b/ace/Message_Block_T.cpp deleted file mode 100644 index fb55ef6238c..00000000000 --- a/ace/Message_Block_T.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// $Id$ - -#if !defined (ACE_MESSAGE_BLOCK_T_C) -#define ACE_MESSAGE_BLOCK_T_C - -#define ACE_BUILD_DLL -#include "ace/Message_Block_T.h" - -ACE_RCSID(ace, Message_Block_T, "$Id$") - -#if !defined (__ACE_INLINE__) -#include "ace/Message_Block_T.i" -#endif /* __ACE_INLINE__ */ - -template<class ACE_LOCK> -ACE_Locked_Data_Block<ACE_LOCK>::~ACE_Locked_Data_Block (void) -{ -} - -template<class L> ACE_Data_Block * -ACE_Locked_Data_Block<L>::clone (ACE_Message_Block::Message_Flags mask) const -{ - ACE_TRACE ("ACE_Data_Block::clone"); - - // You always want to clear this one to prevent memory leaks but you - // might add some others later. - const ACE_Message_Block::Message_Flags always_clear = - ACE_Message_Block::DONT_DELETE; - - ACE_Locked_Data_Block<L> *nb; - - ACE_NEW_MALLOC_RETURN (nb, - ACE_static_cast(ACE_Locked_Data_Block<L>*, - this->data_block_allocator ()->malloc (sizeof (ACE_Locked_Data_Block<L>))), - ACE_Locked_Data_Block<L> (this->size (), - this->msg_type (), - 0, - this->allocator_strategy (), - this->flags (), - this->data_block_allocator ()), - 0); - - // Copy all of the payload memory into the new object. - ACE_OS::memcpy (nb->base (), this->base (), this->size ()); - - // Set new flags minus the mask... - nb->clr_flags (mask | always_clear); - return nb; -} - -#endif /* ACE_MESSAGE_BLOCK_T_C */ |