diff options
Diffstat (limited to 'ace/Recyclable.inl')
-rw-r--r-- | ace/Recyclable.inl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ace/Recyclable.inl b/ace/Recyclable.inl index ef096ff62be..c9a4318b2dc 100644 --- a/ace/Recyclable.inl +++ b/ace/Recyclable.inl @@ -1,8 +1,7 @@ -// -*- C++ -*- -// +/* -*- C++ -*- */ //$Id$ -ACE_BEGIN_VERSIONED_NAMESPACE_DECL + ACE_INLINE ACE_Recyclable_State ACE_Recyclable::recycle_state (void) const @@ -13,8 +12,8 @@ ACE_Recyclable::recycle_state (void) const ACE_INLINE void ACE_Recyclable::recycle_state (ACE_Recyclable_State new_state) { - if (this->recycle_state_ != ACE_RECYCLABLE_CLOSED) - this->recycle_state_ = new_state; -} + if (this->recycle_state_ == ACE_RECYCLABLE_CLOSED) + return; -ACE_END_VERSIONED_NAMESPACE_DECL + this->recycle_state_ = new_state; +} |