00001 // -*- C++ -*- 00002 // 00003 //$Id: Condition.inl 69150 2005-11-02 07:13:04Z ossama $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template <class MUTEX> ACE_INLINE int 00008 TAO_Condition<MUTEX>::wait (void) 00009 { 00010 return this->cond_->wait (); 00011 } 00012 00013 template <class MUTEX> ACE_INLINE int 00014 TAO_Condition<MUTEX>::wait (MUTEX &mutex, 00015 const ACE_Time_Value *abstime) 00016 { 00017 return this->cond_->wait (mutex, 00018 abstime); 00019 } 00020 00021 // Peform an "alertable" timed wait. If the argument ABSTIME == 0 00022 // then we do a regular cond_wait(), else we do a timed wait for up to 00023 // ABSTIME using the Solaris cond_timedwait() function. 00024 00025 template <class MUTEX> ACE_INLINE int 00026 TAO_Condition<MUTEX>::wait (const ACE_Time_Value *abstime) 00027 { 00028 return this->wait (*this->mutex_, abstime); 00029 } 00030 00031 template<class MUTEX> ACE_INLINE int 00032 TAO_Condition<MUTEX>::remove (void) 00033 { 00034 return this->cond_->remove (); 00035 } 00036 00037 template<class MUTEX> ACE_INLINE MUTEX * 00038 TAO_Condition<MUTEX>::mutex (void) 00039 { 00040 return this->mutex_; 00041 } 00042 00043 template <class MUTEX> ACE_INLINE int 00044 TAO_Condition<MUTEX>::signal (void) 00045 { 00046 return this->cond_->signal (); 00047 } 00048 00049 template <class MUTEX> ACE_INLINE int 00050 TAO_Condition<MUTEX>::broadcast (void) 00051 { 00052 return this->cond_->broadcast (); 00053 } 00054 00055 TAO_END_VERSIONED_NAMESPACE_DECL