summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-14 02:40:31 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-14 02:40:31 +0000
commit3cacb269d5bf5af779e3321e821713e72030a8cc (patch)
tree88ef056cb1e6017d187a2ba605a209ab5a54dad7 /tests
parent018d06ade5b9ea1b3340c1015a1aaa8e1d821879 (diff)
downloadATCD-3cacb269d5bf5af779e3321e821713e72030a8cc.tar.gz
(~Process_Strategy): added an explicit destructor.
Diffstat (limited to 'tests')
-rw-r--r--tests/Process_Strategy_Test.cpp6
-rw-r--r--tests/Process_Strategy_Test.h9
2 files changed, 12 insertions, 3 deletions
diff --git a/tests/Process_Strategy_Test.cpp b/tests/Process_Strategy_Test.cpp
index 4e7f9faeed0..d4c0ed3b159 100644
--- a/tests/Process_Strategy_Test.cpp
+++ b/tests/Process_Strategy_Test.cpp
@@ -95,6 +95,12 @@ Process_Strategy::Process_Strategy (size_t n_processes,
{
}
+// Destructor. g++ 2.7.2.3 gets very confused ("Internal compiler
+// error") without it.
+Process_Strategy::~Process_Strategy (void)
+{
+}
+
// Overwrite the process creation method to include connection
// counting
int
diff --git a/tests/Process_Strategy_Test.h b/tests/Process_Strategy_Test.h
index 7f8c9dcfcf7..7731eb014df 100644
--- a/tests/Process_Strategy_Test.h
+++ b/tests/Process_Strategy_Test.h
@@ -12,7 +12,7 @@
//
// = AUTHOR
// Doug Schmidt and Kevin Boyle <kboyle@sanwafp.com>
-//
+//
// ============================================================================
#if !defined (PROCESS_STRATEGY_TEST_H)
@@ -25,7 +25,7 @@
// Forward decl.
class ACE_Thread_Manager;
-class Counting_Service : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH>
+class Counting_Service : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH>
// = TITLE
// Reads and increments the count in a shared file.
//
@@ -75,10 +75,13 @@ public:
ACE_Reactor * = 0,
int flags = 0);
+ // Destructor
+ ~Process_Strategy (void);
+
// Overwrite the process creation method to include connection
// counting
virtual int activate_svc_handler (Counting_Service *svc_handler,
- void *arg = 0);
+ void *arg = 0);
};
class Options : public ACE_Event_Handler