1 #ifndef TAO_CONDITION_CPP
2 #define TAO_CONDITION_CPP
3 #include "tao/Condition.h"
6 #if !defined (__ACE_INLINE__)
7 # include "tao/Condition.inl"
8 #endif /* __ACE_INLINE__ */
10 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
12 template <class MUTEX
>
13 TAO_Condition
<MUTEX
>::TAO_Condition (MUTEX
&m
)
18 // @todo: Need to add the allocatore here..
20 TAO_SYNCH_CONDITION (*this->mutex_
));
23 template <class MUTEX
>
24 TAO_Condition
<MUTEX
>::TAO_Condition ()
30 // @todo: Need to add the allocatore here..
31 ACE_NEW (this->mutex_
,
34 this->delete_lock_
= true;
37 TAO_SYNCH_CONDITION (*this->mutex_
));
41 template <class MUTEX
>
42 TAO_Condition
<MUTEX
>::~TAO_Condition ()
44 if (this->remove () == -1)
45 TAOLIB_ERROR ((LM_ERROR
,
47 ACE_TEXT ("TAO_Condition::~TAO_Condition")));
51 if (this->delete_lock_
)
55 TAO_END_VERSIONED_NAMESPACE_DECL
57 #endif /* TAO_CONDITION_CPP */