diff options
Diffstat (limited to 'TAO/tao/Condition.inl')
-rw-r--r-- | TAO/tao/Condition.inl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tao/Condition.inl b/TAO/tao/Condition.inl new file mode 100644 index 00000000000..0e69d8b1bf1 --- /dev/null +++ b/TAO/tao/Condition.inl @@ -0,0 +1,55 @@ +// -*- C++ -*- +// +//$Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +template <class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::wait (void) +{ + return this->cond_->wait (); +} + +template <class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::wait (MUTEX &mutex, + const ACE_Time_Value *abstime) +{ + return this->cond_->wait (mutex, + abstime); +} + +// Peform an "alertable" timed wait. If the argument ABSTIME == 0 +// then we do a regular cond_wait(), else we do a timed wait for up to +// ABSTIME using the Solaris cond_timedwait() function. + +template <class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::wait (const ACE_Time_Value *abstime) +{ + return this->wait (*this->mutex_, abstime); +} + +template<class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::remove (void) +{ + return this->cond_->remove (); +} + +template<class MUTEX> ACE_INLINE MUTEX * +TAO_Condition<MUTEX>::mutex (void) +{ + return this->mutex_; +} + +template <class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::signal (void) +{ + return this->cond_->signal (); +} + +template <class MUTEX> ACE_INLINE int +TAO_Condition<MUTEX>::broadcast (void) +{ + return this->cond_->broadcast (); +} + +TAO_END_VERSIONED_NAMESPACE_DECL |