summaryrefslogtreecommitdiff
path: root/ACE/performance-tests/Misc/test_singleton.h
blob: e9ae536359fd4ff8bbd2b828a10f126aa7edf341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Define the DC_Singleton here

#ifndef __TEST_SINGLETON_H
#define __TEST_SINGLETON_H

#include "ace/Synch_Traits.h"

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

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

#endif /* __TEST_SINGLETON_H */