diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-04-04 04:26:10 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-04-04 04:26:10 +0000 |
commit | 49e28172fde149655832e3f58e9a8d91c4e394c3 (patch) | |
tree | 866f51c285d8f0d3c1cd2a53a0194d493825e847 /TAO/tao/Condition.inl | |
parent | cf868907d58e193c4cff75a0bd0d5122661db91e (diff) | |
download | ATCD-49e28172fde149655832e3f58e9a8d91c4e394c3.tar.gz |
ChangeLogTag: Wed Apr 3 22:18:38 2002 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Condition.inl')
-rw-r--r-- | TAO/tao/Condition.inl | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/tao/Condition.inl b/TAO/tao/Condition.inl new file mode 100644 index 00000000000..089bc0d54be --- /dev/null +++ b/TAO/tao/Condition.inl @@ -0,0 +1,50 @@ +/* -*- C++ -*- */ +//$Id$ +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) +{ + this->cond_->remove (); +} + +template<class MUTEX> ACE_INLINE MUTEX * +TAO_Condition<MUTEX>::mutex (void) +{ + // ACE_TRACE ("ACE_Condition<MUTEX>::mutex"); + 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 (); +} |