summaryrefslogtreecommitdiff
path: root/ACE/tests/NonBlocking_Conn_Test.h
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-08 16:36:22 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-02-08 16:36:22 +0000
commitf9c207c9ca81dac8b4658ae8e7a3bc38082fe51f (patch)
treecd649d0bb42b4606087dbc1f6dd4ae6217c9a85a /ACE/tests/NonBlocking_Conn_Test.h
parent4791cdf67cb1a4cadb5ac069dd8821b6173b2b7d (diff)
downloadATCD-f9c207c9ca81dac8b4658ae8e7a3bc38082fe51f.tar.gz
Mon Feb 8 16:21:06 UTC 2010 Vladimir Zykov <vladimir.zykov@prismtech.com>
* ace/Strategies_T.cpp: Changed the code so that close() is called in case of failure instead of destroy(). * ace/Connector.cpp: Changed a bit the code added by me on 'Wed Sep 2 14:45:27 UTC 2009' as a fix for bug#3731. After some more thinking it turned out that the original code could result in a crash when reference counting is not enabled and thus svc_handler could be destroyed at the time when there was an attempt to do remove_reference(). * ace/Svc_Handler.cpp: Moved the code added by me on 'Thu Feb 4 11:15:57 UTC 2010' from destroy() to handle_close(). * tests/NonBlocking_Conn_Test.h: * tests/NonBlocking_Conn_Test.cpp: Extended the test for using Svc_Handler with and without reference counting.
Diffstat (limited to 'ACE/tests/NonBlocking_Conn_Test.h')
-rw-r--r--ACE/tests/NonBlocking_Conn_Test.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ACE/tests/NonBlocking_Conn_Test.h b/ACE/tests/NonBlocking_Conn_Test.h
index 77746238226..a05d5437e3b 100644
--- a/ACE/tests/NonBlocking_Conn_Test.h
+++ b/ACE/tests/NonBlocking_Conn_Test.h
@@ -37,7 +37,14 @@ public:
FAILED
};
- Svc_Handler (void);
+ enum Completion_Status
+ {
+ YES,
+ NO,
+ IGNORE
+ };
+
+ Svc_Handler (bool is_ref_counted);
void connection_status (Connection_Status &status,
int &completion_counter);