92 #ifndef G4TLSSINGLETON_HH
93 #define G4TLSSINGLETON_HH
109 friend void G4AutoDelete::Register<T>(T*);
149 if ( instance == static_cast<T*>(0) ) {
162 instances.push_back(i);
169 while ( ! instances.empty() )
171 T* thisinst = instances.front();
172 instances.pop_front();
173 if ( thisinst != 0 )
delete thisinst;
177 #endif //G4TLSSINGLETON_HH
#define G4MUTEXINIT(mutex)
std::list< T * > instances
void Register(T *i) const
static MCTruthManager * instance
~G4ThreadLocalSingleton()
void Put(const value_type &val) const
#define G4MUTEXDESTROY(mutex)