diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/tao/Condition.cpp | |
parent | 0e555b9150d38e3b3473ba325b56db2642e6352b (diff) | |
download | ATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/Condition.cpp')
-rw-r--r-- | TAO/tao/Condition.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/TAO/tao/Condition.cpp b/TAO/tao/Condition.cpp deleted file mode 100644 index 06e17912045..00000000000 --- a/TAO/tao/Condition.cpp +++ /dev/null @@ -1,62 +0,0 @@ -// $Id$ - -#ifndef TAO_CONDITION_CPP -#define TAO_CONDITION_CPP -#include "tao/Condition.h" -#include "ace/Log_Msg.h" - -#if !defined (__ACE_INLINE__) -# include "tao/Condition.inl" -#endif /* __ACE_INLINE__ */ - - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -template <class MUTEX> -TAO_Condition<MUTEX>::TAO_Condition (MUTEX &m) - - : mutex_ (&m), - delete_lock_ (0), - cond_ (0) -{ - // @@todo: Need to add the allocatore here.. - ACE_NEW (this->cond_, - TAO_SYNCH_CONDITION (*this->mutex_)); -} - -template <class MUTEX> -TAO_Condition<MUTEX>::TAO_Condition (void) - : mutex_ (0), - delete_lock_ (0), - cond_ (0) - -{ - // @@todo: Need to add the allocatore here.. - - ACE_NEW (this->mutex_, - MUTEX); - - this->delete_lock_ = 1; - - ACE_NEW (this->cond_, - TAO_SYNCH_CONDITION (*this->mutex_)); -} - - -template <class MUTEX> -TAO_Condition<MUTEX>::~TAO_Condition (void) -{ - if (this->remove () == -1) - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("TAO_Condition::~TAO_Condition"))); - - delete this->cond_; - - if (this->delete_lock_) - delete this->mutex_; -} - -TAO_END_VERSIONED_NAMESPACE_DECL - -#endif /* TAO_CONDITION_CPP */ |