diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-16 05:00:21 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-02-16 05:00:21 +0000 |
commit | 1656c22cfb2e869da1278fcfc13e943b3ab5d552 (patch) | |
tree | 89c06cb039781724f65b5c2a150db5fae1e7b2bf | |
parent | 156eeb190c9006bd9f829c9df0baf9dfad06ed5b (diff) | |
download | ATCD-1656c22cfb2e869da1278fcfc13e943b3ab5d552.tar.gz |
ChangeLogTag:Tue Feb 15 22:56:58 2000 Nanbor Wang <nanbor@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 6 | ||||
-rw-r--r-- | TAO/tao/SHMIOP_Transport.cpp | 26 |
2 files changed, 8 insertions, 24 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index 11deb8ef436..982d26563b5 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Tue Feb 15 22:56:58 2000 Nanbor Wang <nanbor@cs.wustl.edu> + + * tao/SHMIOP_Transport.cpp (send): Changed to use the new + ACE_MEM_IO::send method to send a message block chain. This + reduced the number of signaling and should improve performace. + Tue Feb 15 19:53:49 2000 Jeff Parsons <parsons@cs.wustl.edu> * TAO_IDL/be/be_interface.cpp: diff --git a/TAO/tao/SHMIOP_Transport.cpp b/TAO/tao/SHMIOP_Transport.cpp index a695f6fa91c..73adeab19cb 100644 --- a/TAO/tao/SHMIOP_Transport.cpp +++ b/TAO/tao/SHMIOP_Transport.cpp @@ -339,30 +339,8 @@ TAO_SHMIOP_Transport::send (const ACE_Message_Block *message_block, const ACE_Time_Value *max_wait_time) { TAO_FUNCTION_PP_TIMEPROBE (TAO_SHMIOP_TRANSPORT_SEND_START); - ssize_t n = 0; - ssize_t len = 0; - ssize_t nbytes = 0; - - while (message_block != 0) - { - len = message_block->length (); - if (len > 0) - { - n = this->handler_->peer ().send (message_block->rd_ptr (), - len, - max_wait_time); - if (n <= 0) - return n; - } - - nbytes += n; - if (message_block->cont ()) - message_block = message_block->cont (); - else - message_block = message_block->next (); - } - - return nbytes; + return this->handler_->peer ().send (message_block, + max_wait_time); } ssize_t |