diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 18:46:21 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 18:46:21 +0000 |
commit | b5adfd4ffd24551632be96077fe9f519e10bfff7 (patch) | |
tree | c0b39d4473db1aaf1cd357b18174bc08d5cc5a2a /ace/Malloc.h | |
parent | 5f1275d9dae3b389ae185f5f80eacf50578a3bb7 (diff) | |
download | ATCD-b5adfd4ffd24551632be96077fe9f519e10bfff7.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Malloc.h')
-rw-r--r-- | ace/Malloc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ace/Malloc.h b/ace/Malloc.h index 40efd4d5603..21adedae246 100644 --- a/ace/Malloc.h +++ b/ace/Malloc.h @@ -28,6 +28,16 @@ class ACE_Export ACE_Allocator public: // = Memory Management + static ACE_Allocator *instance (void); + // Get pointer to a default <ACE_Allocator>. + + static ACE_Allocator *instance (ACE_Allocator *); + // Set pointer to a process-wide <ACE_Allocator> and return existing + // pointer. + + static void close_singleton (void); + // Delete the dynamically allocated Singleton + virtual ~ACE_Allocator (void); // Virtual destructor @@ -107,6 +117,13 @@ public: virtual void dump (void) const = 0; // Dump the state of the object. +private: + + static ACE_Allocator *allocator_; + // Pointer to a process-wide <ACE_Allocator> instance. + + static int delete_allocator_; + // Must delete the <allocator_> if non-0. }; #if defined (ACE_MALLOC_STATS) |