diff options
Diffstat (limited to 'TAO/tao/LF_CH_Event.cpp')
-rw-r--r-- | TAO/tao/LF_CH_Event.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/tao/LF_CH_Event.cpp b/TAO/tao/LF_CH_Event.cpp index b00c7a59f29..735041be0e4 100644 --- a/TAO/tao/LF_CH_Event.cpp +++ b/TAO/tao/LF_CH_Event.cpp @@ -109,8 +109,8 @@ TAO_LF_CH_Event::validate_state_change (int new_state) } -int -TAO_LF_CH_Event::successful (void) const +bool +TAO_LF_CH_Event::successful_i (void) const { if (this->prev_state_ == TAO_LF_Event::LFS_CONNECTION_WAIT) return this->state_ == TAO_LF_Event::LFS_SUCCESS; @@ -118,8 +118,8 @@ TAO_LF_CH_Event::successful (void) const return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED; } -int -TAO_LF_CH_Event::error_detected (void) const +bool +TAO_LF_CH_Event::error_detected_i (void) const { if (this->prev_state_ == TAO_LF_Event::LFS_CONNECTION_WAIT) return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED; @@ -131,7 +131,7 @@ void TAO_LF_CH_Event::set_state (int new_state) { // @@ NOTE: Is this still required? - if (this->is_state_final () == 0 + if (!this->is_state_final () && new_state == TAO_LF_Event::LFS_TIMEOUT) { this->state_ = new_state; @@ -150,8 +150,8 @@ TAO_LF_CH_Event::set_state (int new_state) } } -int -TAO_LF_CH_Event::is_state_final (void) +bool +TAO_LF_CH_Event::is_state_final (void) const { return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED; } |