summaryrefslogtreecommitdiff
path: root/ace/TP_Reactor.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/TP_Reactor.inl')
-rw-r--r--ace/TP_Reactor.inl37
1 files changed, 17 insertions, 20 deletions
diff --git a/ace/TP_Reactor.inl b/ace/TP_Reactor.inl
index b4fa3c258d1..08c17a7e65e 100644
--- a/ace/TP_Reactor.inl
+++ b/ace/TP_Reactor.inl
@@ -1,23 +1,26 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/************************************************************************/
// Methods for ACE_EH_Dispatch_Info
/************************************************************************/
+ACE_INLINE void
+ACE_EH_Dispatch_Info::reset (void)
+{
+ this->dispatch_ = 0;
+
+ this->handle_ = ACE_INVALID_HANDLE;
+ this->event_handler_ = 0;
+ this->mask_ = ACE_Event_Handler::NULL_MASK;
+ this->callback_ = 0;
+}
+
+
ACE_INLINE
-ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info (void) :
- handle_ (ACE_INVALID_HANDLE),
- event_handler_ (0),
- mask_ (ACE_Event_Handler::NULL_MASK),
- callback_ (0),
- resume_flag_ (ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER),
- reference_counting_required_ (false),
- dispatch_ (false)
+ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info (void)
{
+ this->reset ();
}
ACE_INLINE void
@@ -26,19 +29,15 @@ ACE_EH_Dispatch_Info::set (ACE_HANDLE handle,
ACE_Reactor_Mask mask,
ACE_EH_PTMF callback)
{
- this->dispatch_ = true;
+ this->dispatch_ = 1;
this->handle_ = handle;
this->event_handler_ = event_handler;
this->mask_ = mask;
this->callback_ = callback;
- this->resume_flag_ = event_handler->resume_handler ();
- this->reference_counting_required_ =
- (event_handler_->reference_counting_policy ().value () ==
- ACE_Event_Handler::Reference_Counting_Policy::ENABLED);
}
-ACE_INLINE bool
+ACE_INLINE int
ACE_EH_Dispatch_Info::dispatch (void) const
{
return this->dispatch_;
@@ -110,5 +109,3 @@ ACE_TP_Reactor::clear_dispatch_mask (ACE_HANDLE ,
this->ready_set_.wr_mask_.reset ();
this->ready_set_.ex_mask_.reset ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL