Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: G4ErrorPropagatorData.cc 67970 2013-03-13 10:10:06Z gcosmo $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
@@ -35,8 +35,8 @@
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
G4ErrorPropagatorData* G4ErrorPropagatorData::theErrorPropagatorData = 0;
|
||||
G4int G4ErrorPropagatorData::theVerbosity = 0;
|
||||
G4ThreadLocal G4ErrorPropagatorData* G4ErrorPropagatorData::fpInstance = 0;
|
||||
G4ThreadLocal G4int G4ErrorPropagatorData::theVerbosity = 0;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
@@ -48,16 +48,16 @@ G4ErrorPropagatorData::G4ErrorPropagatorData()
|
||||
|
||||
G4ErrorPropagatorData::~G4ErrorPropagatorData()
|
||||
{
|
||||
delete fpInstance; fpInstance = 0;
|
||||
}
|
||||
|
||||
G4ErrorPropagatorData* G4ErrorPropagatorData::GetErrorPropagatorData()
|
||||
{
|
||||
static G4ErrorPropagatorData errorPropagatorData;
|
||||
if( !theErrorPropagatorData )
|
||||
if (fpInstance == 0)
|
||||
{
|
||||
theErrorPropagatorData = &errorPropagatorData;
|
||||
fpInstance = new G4ErrorPropagatorData;
|
||||
}
|
||||
return theErrorPropagatorData;
|
||||
return fpInstance;
|
||||
}
|
||||
|
||||
G4int G4ErrorPropagatorData::verbose()
|
||||
|
||||
Reference in New Issue
Block a user