diff options
author | bala <balanatarajan@users.noreply.github.com> | 2002-12-09 20:42:29 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2002-12-09 20:42:29 +0000 |
commit | 1dd28f414840684193dd71ba01a04fa66bd4bee6 (patch) | |
tree | 82155a9352288a78a6b934c9ea1e0f979c13819c /TAO/tao | |
parent | 68823a6a68ac985f46ec9616982b3106540f4ee3 (diff) | |
download | ATCD-1dd28f414840684193dd71ba01a04fa66bd4bee6.tar.gz |
ChangeLogTag: Mon Dec 9 14:51:01 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'TAO/tao')
-rw-r--r-- | TAO/tao/Connection_Handler.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/TAO/tao/Connection_Handler.cpp b/TAO/tao/Connection_Handler.cpp index 78ded37f522..831ed756032 100644 --- a/TAO/tao/Connection_Handler.cpp +++ b/TAO/tao/Connection_Handler.cpp @@ -294,6 +294,12 @@ TAO_Connection_Handler::handle_input_eh ( // Let the transport know that it is used (void) this->transport ()->update_transport (); + // Grab the transport id now and use the cached value for printing + // since the transport could dissappear by the time the thread + // returns. + int t_id = + this->transport ()->id (); + // Increase the reference count on the upcall that have passed us. // @@ -307,10 +313,11 @@ TAO_Connection_Handler::handle_input_eh ( ACE_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::handle_input, " "handle = %d/%d, refcount = %d\n", - this->transport ()->id (), handle, h, refcount)); + t_id, handle, h, refcount)); } - TAO_Resume_Handle resume_handle (this->orb_core (), eh->get_handle ()); + TAO_Resume_Handle resume_handle (this->orb_core (), + eh->get_handle ()); int return_value = 0; @@ -338,7 +345,7 @@ TAO_Connection_Handler::handle_input_eh ( ACE_DEBUG ((LM_DEBUG, "TAO (%P|%t) Connection_Handler[%d]::handle_input, " "handle = %d/%d, refcount = %d, retval = %d\n", - this->transport()->id (), handle, h, refcount, return_value)); + t_id, handle, h, refcount, return_value)); } if (return_value == -1 || refcount == 0) |