92 #ifndef G4TLSSINGLETON_HH
93 #define G4TLSSINGLETON_HH
109 friend void G4AutoDelete::Register<T>(T*);
148 if ( instance == static_cast<T*>(0) ) {
161 instances.push_back(i);
168 while ( ! instances.empty() )
170 T* thisinst = instances.front();
171 instances.pop_front();
172 if ( thisinst != 0 )
delete thisinst;
176 #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