summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 22:53:31 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-27 22:53:31 +0000
commit48220355f163b4e7eaca4ba8cf9613d6241ebd4c (patch)
tree533bcdd7ae2bbe2b9f21bdd7dce1af08176bd539
parent2c72e8f36fb8703b8a4a467d1773cd91178f95f6 (diff)
downloadATCD-48220355f163b4e7eaca4ba8cf9613d6241ebd4c.tar.gz
Fixed the problem with making Nested Upcalls. Got the
/test/NestedUpcall/Reactor test to work with <Wait_On_Reactor> strategy.
-rw-r--r--TAO/tao/Wait_Strategy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/tao/Wait_Strategy.cpp b/TAO/tao/Wait_Strategy.cpp
index 5f926765a3d..409eefce7b1 100644
--- a/TAO/tao/Wait_Strategy.cpp
+++ b/TAO/tao/Wait_Strategy.cpp
@@ -28,21 +28,21 @@ TAO_Wait_On_Reactor::~TAO_Wait_On_Reactor (void)
{
}
+// Return value just like the return value of
+// <Reactor::handle_events>.
int
TAO_Wait_On_Reactor::wait (void)
{
int result = 0;
+ // Do the event loop, till there are no events and no errors.
while (result == 0)
{
// Do the event loop.
result = this->transport_->orb_core ()->reactor ()->handle_events (/* timeout */);
}
- if (result == -1)
- return -1;
- else
- return 0;
+ return result;
}
int