summaryrefslogtreecommitdiff
path: root/TAO/tao/Wait_On_Reactor.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-08-01 23:39:57 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-08-01 23:39:57 +0000
commit2c3ab374267eb89c1a64bf6c28d6a34137e96b13 (patch)
treee11d110b2f6e69f07a780756276cc735be3e8fa9 /TAO/tao/Wait_On_Reactor.cpp
parent78f15e9fef70e8500baf261258da62677e2340ff (diff)
downloadATCD-2c3ab374267eb89c1a64bf6c28d6a34137e96b13.tar.gz
ChangeLogTag:Wed Aug 1 16:05:36 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tao/Wait_On_Reactor.cpp')
-rw-r--r--TAO/tao/Wait_On_Reactor.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/TAO/tao/Wait_On_Reactor.cpp b/TAO/tao/Wait_On_Reactor.cpp
index b57ba86b1a2..9abc0063b37 100644
--- a/TAO/tao/Wait_On_Reactor.cpp
+++ b/TAO/tao/Wait_On_Reactor.cpp
@@ -2,7 +2,8 @@
#include "tao/Wait_On_Reactor.h"
#include "tao/ORB_Core.h"
-#include "Transport.h"
+#include "tao/Transport.h"
+#include "tao/Synch_Reply_Dispatcher.h"
ACE_RCSID(tao, Wait_On_Reactor, "$Id$")
@@ -17,7 +18,7 @@ TAO_Wait_On_Reactor::~TAO_Wait_On_Reactor (void)
int
TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
- int &reply_received)
+ TAO_Synch_Reply_Dispatcher &rd)
{
// Reactor does not change inside the loop.
ACE_Reactor* reactor =
@@ -32,7 +33,7 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
// If we got our reply, no need to run the event loop any
// further.
- if (reply_received)
+ if (!rd.keep_waiting ())
break;
// Did we timeout? If so, stop running the loop.
@@ -48,13 +49,13 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
// Otherwise, keep going...
}
- if (result == -1 || reply_received == -1)
+ if (result == -1 || rd.error_detected ())
return -1;
// Return an error if there was a problem receiving the reply.
if (max_wait_time != 0)
{
- if (reply_received != 1 &&
+ if (rd.successful () &&
*max_wait_time == ACE_Time_Value::zero)
{
result = -1;
@@ -64,7 +65,7 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
else
{
result = 0;
- if (reply_received == -1)
+ if (rd.error_detected ())
result = -1;
}