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