summaryrefslogtreecommitdiff
path: root/performance-tests/Misc/test_singleton.h
blob: 20dcfd2bf322a131f53aa013391546322108377c (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
// $Id$

// Define the DC_Singleton here - it needs to be in a separate file to
// get picked up correctly on AIX with auto template instantiation using
// IBM C++ compiler (xlC).

#ifndef __TEST_SINGLETON_H
#define __TEST_SINGLETON_H

#include "ace/Synch.h"

class DC_Singleton
{
public:
  DC_Singleton (void) {}
  void svc (void) {}
  static DC_Singleton *instance (void);

private:
  static ACE_Thread_Mutex lock_;
  static DC_Singleton *instance_;
};

#endif /* __TEST_SINGLETON_H */