diff options
Diffstat (limited to 'ACE/ace/TP_Reactor.inl')
-rw-r--r-- | ACE/ace/TP_Reactor.inl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ACE/ace/TP_Reactor.inl b/ACE/ace/TP_Reactor.inl index b4fa3c258d1..8e38e339c32 100644 --- a/ACE/ace/TP_Reactor.inl +++ b/ACE/ace/TP_Reactor.inl @@ -52,17 +52,17 @@ ACE_INLINE ACE_TP_Token_Guard::ACE_TP_Token_Guard (ACE_Select_Reactor_Token &token) : token_ (token), - owner_ (0) + owner_ (false) { } ACE_INLINE ACE_TP_Token_Guard::~ACE_TP_Token_Guard (void) { - if (this->owner_ == 1) + if (this->owner_) { ACE_MT (this->token_.release ()); - this->owner_ = 0; + this->owner_ = false; } } @@ -74,11 +74,11 @@ ACE_TP_Token_Guard::release_token (void) ACE_MT (this->token_.release ()); // We are not the owner anymore.. - this->owner_ = 0; + this->owner_ = false; } } -ACE_INLINE int +ACE_INLINE bool ACE_TP_Token_Guard::is_owner (void) { return this->owner_; |