Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4RichTrajectoryPoint.hh 69003 2013-04-15 09:25:23Z gcosmo $
|
||||
// $Id: G4RichTrajectoryPoint.hh 110262 2018-05-17 14:25:55Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
@@ -117,19 +117,18 @@ private:
|
||||
G4double fPostStepPointWeight;
|
||||
};
|
||||
|
||||
extern G4TRACKING_DLL G4ThreadLocal
|
||||
G4Allocator<G4RichTrajectoryPoint> *aRichTrajectoryPointAllocator;
|
||||
extern G4TRACKING_DLL G4Allocator<G4RichTrajectoryPoint>*& aRichTrajectoryPointAllocator();
|
||||
|
||||
inline void* G4RichTrajectoryPoint::operator new(size_t)
|
||||
{
|
||||
if (!aRichTrajectoryPointAllocator)
|
||||
{ aRichTrajectoryPointAllocator = new G4Allocator<G4RichTrajectoryPoint>; }
|
||||
return (void *) aRichTrajectoryPointAllocator->MallocSingle();
|
||||
if (!aRichTrajectoryPointAllocator())
|
||||
{ aRichTrajectoryPointAllocator() = new G4Allocator<G4RichTrajectoryPoint>; }
|
||||
return (void *) aRichTrajectoryPointAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
inline void G4RichTrajectoryPoint::operator delete(void *aRichTrajectoryPoint)
|
||||
{
|
||||
aRichTrajectoryPointAllocator->FreeSingle
|
||||
aRichTrajectoryPointAllocator()->FreeSingle
|
||||
((G4RichTrajectoryPoint *) aRichTrajectoryPoint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user