diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-13 03:46:24 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-13 03:46:24 +0000 |
commit | 6ee739b410ce5b846971914747b23225243fd82a (patch) | |
tree | 0b1b83f537f3e1b7cff3d5df88b3dd7c4ad1aa15 /ace/Handle_Set.cpp | |
parent | 13bcfa8dd3e58542d6cba5e43a12f2c659fcf1e0 (diff) | |
download | ATCD-6ee739b410ce5b846971914747b23225243fd82a.tar.gz |
foobar
Diffstat (limited to 'ace/Handle_Set.cpp')
-rw-r--r-- | ace/Handle_Set.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ace/Handle_Set.cpp b/ace/Handle_Set.cpp index b0258da7476..9c5d25a45b5 100644 --- a/ace/Handle_Set.cpp +++ b/ace/Handle_Set.cpp @@ -100,12 +100,14 @@ ACE_Handle_Set::sync (ACE_HANDLE max) { ACE_TRACE ("ACE_Handle_Set::sync"); #if !defined(ACE_WIN32) - this->size_ = 0; + this->size_ = 0; - for (int i = (max - 1) / ACE_Handle_Set::WORDSIZE; i >= 0; i--) - this->size_ += count_bits (this->mask_.fds_bits[i]); + for (int i = (max - 1) / ACE_Handle_Set::WORDSIZE; i >= 0; i--) + this->size_ += count_bits (this->mask_.fds_bits[i]); - this->set_max (max); + this->set_max (max); +#else + ACE_UNUSED_ARG(max); #endif /* !ACE_WIN32 */ } @@ -116,6 +118,7 @@ ACE_Handle_Set::set_max (ACE_HANDLE current_max) { ACE_TRACE ("ACE_Handle_Set::set_max"); #if !defined(ACE_WIN32) + if (this->size_ == 0) this->max_handle_ = -1; else @@ -137,6 +140,8 @@ ACE_Handle_Set::set_max (ACE_HANDLE current_max) // Do some sanity checking... if (this->max_handle_ >= ACE_Handle_Set::MAXSIZE) this->max_handle_ = ACE_Handle_Set::MAXSIZE - 1; +#else + ACE_UNUSED_ARG(current_max); #endif /* !ACE_WIN32 */ } |