summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2002-05-02 20:40:11 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2002-05-02 20:40:11 +0000
commit420c30071be1376a5b926e6a0749e8b4bd72f256 (patch)
treea1e72c4ae8b67614dbadc4ede846cbe0fc448772
parent998e9e42126c3a1ffd28dbadfd49a3d31c779bab (diff)
downloadATCD-420c30071be1376a5b926e6a0749e8b4bd72f256.tar.gz
ChangeLogTag:Thu May 2 13:28:01 2002 Ossama Othman <ossama@uci.edu>
-rw-r--r--ace/Dev_Poll_Reactor.cpp8
-rw-r--r--ace/Dev_Poll_Reactor.h12
2 files changed, 16 insertions, 4 deletions
diff --git a/ace/Dev_Poll_Reactor.cpp b/ace/Dev_Poll_Reactor.cpp
index 643241f94d8..f306929672e 100644
--- a/ace/Dev_Poll_Reactor.cpp
+++ b/ace/Dev_Poll_Reactor.cpp
@@ -752,12 +752,14 @@ ACE_Dev_Poll_Reactor::ACE_Dev_Poll_Reactor (ACE_Sig_Handler *sh,
: initialized_ (0)
, poll_fd_ (ACE_INVALID_HANDLE)
, size_ (0)
- , ready_set_ ()
+ // , ready_set_ ()
#if defined (ACE_HAS_EVENT_POLL)
, mmap_ (0)
#else
, dp_fds_ (0)
#endif /* ACE_HAS_EVENT_POLL */
+ , start_pfds_ (0)
+ , end_pfds_ (0)
, deactivated_ (0)
, lock_ ()
, lock_adapter_ (lock_)
@@ -795,12 +797,14 @@ ACE_Dev_Poll_Reactor::ACE_Dev_Poll_Reactor (size_t size,
: initialized_ (0)
, poll_fd_ (ACE_INVALID_HANDLE)
, size_ (0)
- , ready_set_ ()
+ // , ready_set_ ()
#if defined (ACE_HAS_EVENT_POLL)
, mmap_ (0)
#else
, dp_fds_ (0)
#endif /* ACE_HAS_EVENT_POLL */
+ , start_pfds_ (0)
+ , end_pfds_ (0)
, deactivated_ (0)
, lock_ ()
, lock_adapter_ (lock_)
diff --git a/ace/Dev_Poll_Reactor.h b/ace/Dev_Poll_Reactor.h
index 5a3615ee2e7..191b7411fce 100644
--- a/ace/Dev_Poll_Reactor.h
+++ b/ace/Dev_Poll_Reactor.h
@@ -1059,8 +1059,16 @@ protected:
struct pollfd *dp_fds_;
#endif /* ACE_HAS_EVENT_POLL */
- /// Pointer to the array
- struct pollfd *pfds_;
+ /// Pointer to the next pollfd array element that contains the next
+ /// event to be dispatched.
+ struct pollfd *start_pfds_;
+
+ /// The last element in the pollfd array plus one.
+ /**
+ * The loop that dispatches IO events stops when this->start_pfds ==
+ * this->end_pfds_.
+ */
+ struct pollfd *end_pfds_;
/// This flag is used to keep track of whether we are actively handling
/// events or not.