summaryrefslogtreecommitdiff
path: root/ACE/ace/Handle_Set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Handle_Set.cpp')
-rw-r--r--ACE/ace/Handle_Set.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/ACE/ace/Handle_Set.cpp b/ACE/ace/Handle_Set.cpp
index 0be33d35c59..7e8e9862e07 100644
--- a/ACE/ace/Handle_Set.cpp
+++ b/ACE/ace/Handle_Set.cpp
@@ -109,6 +109,28 @@ ACE_Handle_Set::ACE_Handle_Set (const fd_set &fd_mask)
#endif /* !ACE_WIN32 */
}
+#if defined (ACE_HAS_BIG_FD_SET)
+ACE_INLINE
+ACE_Handle_Set::ACE_Handle_Set (const ACE_Handle_Set &rhs)
+{
+ ACE_TRACE ("ACE_Handle_Set::ACE_Handle_Set");
+
+ if (rhs.size_ > 0)
+ {
+ this->size_ =
+ rhs.size_;
+ this->max_handle_ =
+ rhs.max_handle_;
+ this->min_handle_ =
+ rhs.min_handle_;
+ this->mask_ =
+ rhs.mask_;
+ }
+ else
+ this->reset ();
+}
+#endif /* ACE_HAS_BIG_FD_SET */
+
// Counts the number of bits enabled in N. Uses a table lookup to
// speed up the count.