diff options
Diffstat (limited to 'ACE/examples/Shared_Malloc/Malloc.h')
-rw-r--r-- | ACE/examples/Shared_Malloc/Malloc.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/examples/Shared_Malloc/Malloc.h b/ACE/examples/Shared_Malloc/Malloc.h new file mode 100644 index 00000000000..c88cead8bfb --- /dev/null +++ b/ACE/examples/Shared_Malloc/Malloc.h @@ -0,0 +1,33 @@ +/* -*- C++ -*- */ +// $Id$ + +#ifndef MY_MALLOC_H +#define MY_MALLOC_H + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL +class ACE_Allocator; +ACE_END_VERSIONED_NAMESPACE_DECL + +class Malloc + // = TITLE + // Allocator Singleton. +{ +public: + static ACE_Allocator *instance (void); + // Returns static instance. + +private: + Malloc (void); + // Ensure Singleton. + + static ACE_Allocator *instance_; + // Malloc Singleton. +}; + +#endif /* MY_MALLOC_H */ |