92 #ifndef G4TLSSINGLETON_HH
93 #define G4TLSSINGLETON_HH
102 namespace G4AutoDelete {
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 G4MUTEXDESTROY(mutex)
void Register(T *i) const
std::list< T * > instances
#define G4MUTEXINIT(mutex)
void Put(const value_type &val) const
static MCTruthManager * instance
~G4ThreadLocalSingleton()