diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-09-28 13:50:17 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-09-28 13:50:17 +0000 |
commit | dafab1fdacf1ac7c088a102602afc498e025ca20 (patch) | |
tree | ccf95691d675ba8c7a9a66570b8fc0a6c9a588d4 /ACE/ace/TP_Reactor.inl | |
parent | fa6b85e9e1e062719ef0ed8942a18b18951f9261 (diff) | |
download | ATCD-dafab1fdacf1ac7c088a102602afc498e025ca20.tar.gz |
Thu Sep 28 13:35:04 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
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_; |