summaryrefslogtreecommitdiff
path: root/TAO/tao/Transport.cpp
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-08-31 09:50:31 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-08-31 09:50:31 +0000
commit2c10f96b2b3e1d0aa3c20b1ea8d1e44ad0b37021 (patch)
tree832dcca78edf4ed77a516f9984962989f8da65dc /TAO/tao/Transport.cpp
parent7ce7e72e8ed395f6bf4db9818382c0fd786ecb9c (diff)
downloadATCD-2c10f96b2b3e1d0aa3c20b1ea8d1e44ad0b37021.tar.gz
ChangeLogTag: Mon Aug 31 09:43:14 UTC 2009 Vladimir Zykov <vz@prismtech.com>
Diffstat (limited to 'TAO/tao/Transport.cpp')
-rw-r--r--TAO/tao/Transport.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index e2102707cb1..2a8b1684b90 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -225,7 +225,7 @@ TAO_Transport::~TAO_Transport (void)
// The following assert is needed for the test "Bug_2494_Regression".
// See the bugzilla bug #2494 for details.
- ACE_ASSERT (this->head_ == 0);
+ ACE_ASSERT (this->queue_is_empty_i ());
ACE_ASSERT (this->cache_map_entry_ == 0);
#if TAO_HAS_TRANSPORT_CURRENT == 1
@@ -877,7 +877,7 @@ TAO_Transport::handle_timeout (const ACE_Time_Value & /* current_time */,
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - TAO_Transport[%d]::handle_timeout, ")
+ ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_timeout, ")
ACE_TEXT ("timer expired\n"),
this->id ()));
}
@@ -1010,7 +1010,7 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[],
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_helper, ")
ACE_TEXT ("byte_count = %d, head_is_empty = %d\n"),
- this->id(), byte_count, (this->head_ == 0)));
+ this->id(), byte_count, this->queue_is_empty_i ()));
}
return DR_QUEUE_EMPTY;
@@ -1113,7 +1113,7 @@ TAO_Transport::drain_queue_i (TAO::Transport::Drain_Constraints const & dc)
}
}
- if (this->head_ == 0)
+ if (this->queue_is_empty_i ())
{
if (this->flush_timer_pending ())
{
@@ -1144,7 +1144,7 @@ TAO_Transport::cleanup_queue_i ()
int msg_count = 0;
// Cleanup all messages
- while (this->head_ != 0)
+ while (!this->queue_is_empty_i ())
{
TAO_Queued_Message *i = this->head_;
@@ -1175,7 +1175,7 @@ TAO_Transport::cleanup_queue_i ()
void
TAO_Transport::cleanup_queue (size_t byte_count)
{
- while (this->head_ != 0 && byte_count > 0)
+ while (!this->queue_is_empty_i () && byte_count > 0)
{
TAO_Queued_Message *i = this->head_;
@@ -1355,7 +1355,7 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
// to send first:
bool try_sending_first = true;
- bool const queue_empty = (this->head_ == 0);
+ bool const queue_empty = this->queue_is_empty_i ();
TAO::Transport_Queueing_Strategy *queue_strategy =
stub->transport_queueing_strategy ();