summaryrefslogtreecommitdiff
path: root/examples/Shared_Malloc/Malloc.h
blob: 57a1eecd1f2316b46f5bffe10992584f289eb247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* -*- C++ -*- */
// $Id$

#if !defined (MY_MALLOC_H)
#define MY_MALLOC_H

#include "ace/Malloc.h"

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 */