diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-05-05 12:53:55 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-05-05 12:53:55 +0000 |
commit | 3c61e20f081bf6fbab6d3483e5e7f71cb91c4974 (patch) | |
tree | 4d687030d8e848eb2c325e8234fb807f578df890 /ace/Message_Block_T.cpp | |
parent | 65ce81267a19f490a22443567c75276fc864cbd2 (diff) | |
download | ATCD-RepositoryManager.tar.gz |
This commit was manufactured by cvs2svn to create branchRepositoryManager
'RepositoryManager'.
Diffstat (limited to 'ace/Message_Block_T.cpp')
-rw-r--r-- | ace/Message_Block_T.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/ace/Message_Block_T.cpp b/ace/Message_Block_T.cpp deleted file mode 100644 index d3120c13e68..00000000000 --- a/ace/Message_Block_T.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#if !defined (ACE_MESSAGE_BLOCK_T_C) -#define ACE_MESSAGE_BLOCK_T_C - - -ACE_RCSID(ace, Message_Block_T, "$Id$") - -#include "ace/Malloc_Base.h" /* Need ACE_Allocator */ - -#if !defined (__ACE_INLINE__) -#include "ace/Message_Block_T.inl" -#endif /* __ACE_INLINE__ */ - -#include "ace/os_include/os_errno.h" - -template<class L> -ACE_Locked_Data_Block<L>::~ACE_Locked_Data_Block (void) -{ -} - -template<class ACE_LOCK> ACE_Data_Block * -ACE_Locked_Data_Block<ACE_LOCK>::clone_nocopy (ACE_Message_Block::Message_Flags mask) const -{ - ACE_TRACE ("ACE_Locked_Data_Block::clone_nocopy"); - - // 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<ACE_LOCK> *nb; - - ACE_NEW_MALLOC_RETURN (nb, - static_cast<ACE_Locked_Data_Block<ACE_LOCK>*> ( - this->data_block_allocator ()->malloc (sizeof (ACE_Locked_Data_Block<ACE_LOCK>))), - ACE_Locked_Data_Block<ACE_LOCK> (this->size (), - this->msg_type (), - 0, - this->allocator_strategy (), - this->flags (), - this->data_block_allocator ()), - 0); - - // Set new flags minus the mask... - nb->clr_flags (mask | always_clear); - return nb; -} - -#endif /* ACE_MESSAGE_BLOCK_T_C */ |