Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the RE01TrackInformation class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: RE01TrackInformation.hh 75295 2013-10-30 09:32:52Z gcosmo $
|
||||
//
|
||||
|
||||
#ifndef RE01TrackInformation_h
|
||||
@@ -89,16 +89,18 @@ private:
|
||||
|
||||
};
|
||||
|
||||
extern G4Allocator<RE01TrackInformation> aTrackInformationAllocator;
|
||||
extern G4ThreadLocal G4Allocator<RE01TrackInformation> * aTrackInformationAllocator;
|
||||
//extern G4Allocator<RE01TrackInformation> aTrackInformationAllocator;
|
||||
|
||||
inline void* RE01TrackInformation::operator new(size_t)
|
||||
{ void* aTrackInfo;
|
||||
aTrackInfo = (void*)aTrackInformationAllocator.MallocSingle();
|
||||
return aTrackInfo;
|
||||
{
|
||||
if(!aTrackInformationAllocator)
|
||||
aTrackInformationAllocator = new G4Allocator<RE01TrackInformation>;
|
||||
return (void*)aTrackInformationAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
inline void RE01TrackInformation::operator delete(void *aTrackInfo)
|
||||
{ aTrackInformationAllocator.FreeSingle((RE01TrackInformation*)aTrackInfo);}
|
||||
{ aTrackInformationAllocator->FreeSingle((RE01TrackInformation*)aTrackInfo);}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user