diff options
Diffstat (limited to 'TAO/tao/Block_Flushing_Strategy.cpp')
-rw-r--r-- | TAO/tao/Block_Flushing_Strategy.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/tao/Block_Flushing_Strategy.cpp b/TAO/tao/Block_Flushing_Strategy.cpp index 96a6b3f12d1..8e0282ecfdd 100644 --- a/TAO/tao/Block_Flushing_Strategy.cpp +++ b/TAO/tao/Block_Flushing_Strategy.cpp @@ -1,19 +1,19 @@ -// -*- C++ -*- // $Id$ -#include "Block_Flushing_Strategy.h" -#include "Transport.h" -#include "Queued_Message.h" +#include "tao/Block_Flushing_Strategy.h" +#include "tao/Transport.h" +#include "tao/Queued_Message.h" ACE_RCSID(tao, Block_Flushing_Strategy, "$Id$") +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + int TAO_Block_Flushing_Strategy::schedule_output (TAO_Transport *transport) { while (!transport->queue_is_empty_i ()) { - int result = transport->drain_queue_i (); - if (result == -1) + if (transport->drain_queue_i () == -1) return -1; } return 0; @@ -32,8 +32,7 @@ TAO_Block_Flushing_Strategy::flush_message (TAO_Transport *transport, { while (!msg->all_data_sent ()) { - int result = transport->handle_output (); - if (result == -1) + if (transport->handle_output () == -1) return -1; } return 0; @@ -44,9 +43,10 @@ TAO_Block_Flushing_Strategy::flush_transport (TAO_Transport *transport) { while (!transport->queue_is_empty ()) { - int result = transport->handle_output (); - if (result == -1) + if (transport->handle_output () == -1) return -1; } return 0; } + +TAO_END_VERSIONED_NAMESPACE_DECL |