Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
@@ -88,20 +88,20 @@ class G4ScintillationTrackInformation : public G4VUserTrackInformation
class G4ScintillationTrackInformation;
#if defined G4EM_ALLOC_EXPORT
extern G4DLLEXPORT G4ThreadLocal G4Allocator<G4ScintillationTrackInformation> *aScintillationTIAllocator;
extern G4DLLEXPORT G4Allocator<G4ScintillationTrackInformation>*& aScintillationTIAllocator();
#else
extern G4DLLIMPORT G4ThreadLocal G4Allocator<G4ScintillationTrackInformation> *aScintillationTIAllocator;
extern G4DLLIMPORT G4Allocator<G4ScintillationTrackInformation>*& aScintillationTIAllocator();
#endif
inline void* G4ScintillationTrackInformation::operator new(size_t)
{
if (!aScintillationTIAllocator) aScintillationTIAllocator = new G4Allocator<G4ScintillationTrackInformation>;
return (void *) aScintillationTIAllocator->MallocSingle();
if (!aScintillationTIAllocator()) aScintillationTIAllocator() = new G4Allocator<G4ScintillationTrackInformation>;
return (void *) aScintillationTIAllocator()->MallocSingle();
}
inline void G4ScintillationTrackInformation::operator delete(void *aScintillationTI)
{
aScintillationTIAllocator->FreeSingle((G4ScintillationTrackInformation *) aScintillationTI);
aScintillationTIAllocator()->FreeSingle((G4ScintillationTrackInformation *) aScintillationTI);
}
#endif // G4SCINTILLATIONTRACKINFORMATION_H