92 #ifndef G4TLSSINGLETON_HH
93 #define G4TLSSINGLETON_HH
102 namespace G4AutoDelete {
109 friend void G4AutoDelete::Register<T>(T*);
121 void Register(T* i)
const;
125 mutable std::list<T*> instances;
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)
~G4ThreadLocalSingleton()
void Put(const value_type &val) const