diff options
author | vzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-03-17 12:21:14 +0000 |
---|---|---|
committer | vzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-03-17 12:21:14 +0000 |
commit | 3a7b3e4e0a4739c1326e04498fcc0c91faa885bf (patch) | |
tree | 008ce4e7b7ac719e57dce5f90c151c784b974155 /ACE/ace/Connector.h | |
parent | 3f8b10924ec2dd86b94a260a6031723263471d13 (diff) | |
download | ATCD-3a7b3e4e0a4739c1326e04498fcc0c91faa885bf.tar.gz |
Wed Mar 17 11:58:10 UTC 2010 Vladimir Zykov <vladimir.zykov@prismtech.com>
Committed the changes that I had to revert before x.7.7.
* ace/Strategies_T.cpp:
Changed the code so that close() is called in case of failure
instead of destroy().
* ace/Connector.cpp:
* ace/Connector.h:
Changed the fix for bug#3731. Now NBCH adds a reference in
constructor and removes it in destructor if the SVC_HANDLER that
it owns is reference counted. This is a cleaner solution than the
one used before.
* tests/NonBlocking_Conn_Test.h:
* tests/Process_Strategy_Test.cpp:
* tests/NonBlocking_Conn_Test.cpp:
Extended NonBlocking_Conn_Test and changed Process_Strategy_Test
because of the change in Strategies_T.cpp.
* tests/MT_NonBlocking_Connect_Test.cpp:
* tests/tests.mpc:
* tests/run_test.lst:
Added a new test. This can be a reproducer for the bug#3731 which
currently doesn't have its own test.
Diffstat (limited to 'ACE/ace/Connector.h')
-rw-r--r-- | ACE/ace/Connector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/ace/Connector.h b/ACE/ace/Connector.h index 4ba8c7ce3dd..5d77ae430e4 100644 --- a/ACE/ace/Connector.h +++ b/ACE/ace/Connector.h @@ -67,6 +67,9 @@ public: SVC_HANDLER *, long timer_id); + /// Destructor. + ~ACE_NonBlocking_Connect_Handler (void); + /// Close up and return underlying SVC_HANDLER through @c sh. /** * If the return value is true the close was performed succesfully, @@ -127,6 +130,9 @@ private: /// Associated SVC_HANDLER. SVC_HANDLER *svc_handler_; + /// Same as svc_handler_ if svc_handler_ is reference counted. + SVC_HANDLER *cleanup_svc_handler_; + /// Associated timer id. long timer_id_; }; |