summaryrefslogtreecommitdiff
path: root/ace/Svc_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Svc_Handler.h')
-rw-r--r--ace/Svc_Handler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ace/Svc_Handler.h b/ace/Svc_Handler.h
index c15a97c5009..ec8e74386d0 100644
--- a/ace/Svc_Handler.h
+++ b/ace/Svc_Handler.h
@@ -123,6 +123,10 @@ public:
// Overloaded new operator. This method unobtrusively records if a
// <Svc_Handler> is allocated dynamically.
+ void * operator new (size_t n,
+ void *p);
+ // This operator permits "placement new" on a per-object basis.
+
virtual void destroy (void);
// Call this to free up dynamically allocated <Svc_Handlers>
// (otherwise you will get memory leaks). In general, you should
@@ -137,6 +141,10 @@ public:
// call this method directly, so use <destroy> instead, unless you
// know for sure that you've allocated the object dynamically.
+ void operator delete (void *, void *);
+ // This operator is necessary to complement the class-specific
+ // operator new above.
+
void shutdown (void);
// Close down the descriptor and unregister from the Reactor