2 #include "ace/Guard_T.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO::CSD::TP_Synch_Helper::TP_Synch_Helper()
9 condition_(this->lock_)
14 TAO::CSD::TP_Synch_Helper::~TP_Synch_Helper()
20 TAO::CSD::TP_Synch_Helper::wait_while_pending()
22 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, this->lock_, false);
24 while (this->state_ == PENDING)
26 this->condition_.wait();
29 return (this->state_ == DISPATCHED);
34 TAO::CSD::TP_Synch_Helper::dispatched()
36 ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_);
37 this->state_ = DISPATCHED;
38 this->condition_.signal();
43 TAO::CSD::TP_Synch_Helper::cancelled()
45 ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_);
46 this->state_ = CANCELLED;
47 this->condition_.signal();
50 TAO_END_VERSIONED_NAMESPACE_DECL