~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to examples/Shared_Malloc/Malloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// Malloc.h,v 4.2 1998/10/20 02:34:51 levine Exp
3
 
 
4
 
#ifndef MY_MALLOC_H
5
 
#define MY_MALLOC_H
6
 
 
7
 
#include "ace/Malloc.h"
8
 
 
9
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
10
 
# pragma once
11
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
12
 
 
13
 
class Malloc
14
 
  // = TITLE
15
 
  //      Allocator Singleton.
16
 
{
17
 
public:
18
 
  static ACE_Allocator *instance (void);
19
 
  // Returns static instance.
20
 
 
21
 
private:
22
 
  Malloc (void);
23
 
  // Ensure Singleton.
24
 
 
25
 
  static ACE_Allocator *instance_;
26
 
  // Malloc Singleton.
27
 
};
28
 
 
29
 
#endif /* MY_MALLOC_H */