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;
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)
~G4ThreadLocalSingleton()
void Put(const value_type &val) const
#define G4MUTEXDESTROY(mutex)