diff options
Diffstat (limited to 'ace/Handle_Set.inl')
-rw-r--r-- | ace/Handle_Set.inl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ace/Handle_Set.inl b/ace/Handle_Set.inl index d00fb384863..b6f77cfac93 100644 --- a/ace/Handle_Set.inl +++ b/ace/Handle_Set.inl @@ -1,7 +1,7 @@ -/* -*- C++ -*- */ +// -*- C++ -*- +// // $Id$ -// Handle_Set.i #include "ace/Log_Msg.h" // todo: This should be cleaned up a bit. @@ -21,6 +21,8 @@ # include "ace/os_include/os_strings.h" #endif /* ACE_HAS_STRINGS */ +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + // Initialize the bitmask to all 0s and reset the associated fields. ACE_INLINE void @@ -100,7 +102,7 @@ ACE_Handle_Set::set_bit (ACE_HANDLE handle) #if defined (ACE_WIN32) FD_SET ((SOCKET) handle, &this->mask_); - this->size_++; + ++this->size_; #else /* ACE_WIN32 */ #if defined (ACE_HAS_BIG_FD_SET) if (this->size_ == 0) @@ -112,7 +114,7 @@ ACE_Handle_Set::set_bit (ACE_HANDLE handle) FD_SET (handle, &this->mask_); - this->size_++; + ++this->size_; if (handle > this->max_handle_) this->max_handle_ = handle; @@ -132,7 +134,7 @@ ACE_Handle_Set::clr_bit (ACE_HANDLE handle) { FD_CLR ((ACE_SOCKET) handle, &this->mask_); - this->size_--; + --this->size_; #if !defined (ACE_WIN32) if (handle == this->max_handle_) @@ -184,3 +186,5 @@ ACE_INLINE ACE_Handle_Set_Iterator::~ACE_Handle_Set_Iterator (void) { } + +ACE_END_VERSIONED_NAMESPACE_DECL |