Skip to content
Snippets Groups Projects
Commit cdff3c02 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'master-TRT_G4Utilities-v2' into 'master'

Add ATLAS_CHECK_THREAD_SAFETY to TRT_G4Utilities package.

See merge request atlas/athena!34294
parents a518b89f f78ecceb
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!34294Add ATLAS_CHECK_THREAD_SAFETY to TRT_G4Utilities package.
Showing
with 70 additions and 59 deletions
......@@ -17,7 +17,7 @@ atlas_add_library( TRT_G4Utilities
PUBLIC_HEADERS TRT_G4Utilities
PRIVATE_INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS}
LINK_LIBRARIES AthenaKernel
LINK_LIBRARIES AthenaKernel CxxUtils
PRIVATE_LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} PathResolver )
# Install files from the package:
......
InnerDetector/InDetG4/TRT_G4Utilities
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -9,9 +9,9 @@
#include "globals.hh"
#include <fstream>
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTOutputFile
class ATLAS_NOT_THREAD_SAFE TRTOutputFile // This class needs give non-const reference for output streaming. static TRTOutputFile* m_pOutputFile cannot be static const. Thread unsafe exit is also used.
{
public:
~TRTOutputFile();
......@@ -38,7 +38,7 @@ private:
static TRTOutputFile* m_pOutputFile;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -9,9 +9,9 @@
#include "globals.hh"
#include <map>
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters
class ATLAS_NOT_THREAD_SAFE TRTParameters // static variable and thread unsafe exit are used.
{
public:
~TRTParameters();
......@@ -49,7 +49,7 @@ private:
static TRTParameters* s_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfBarrelStraws
class ATLAS_NOT_THREAD_SAFE TRTParametersOfBarrelStraws // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfBarrelStraws;
......@@ -62,7 +63,7 @@ class TRTParametersOfBarrelStraws
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfModulesA
class ATLAS_NOT_THREAD_SAFE TRTParametersOfModulesA // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfModulesA;
......@@ -73,7 +74,7 @@ private:
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfModulesB
class ATLAS_NOT_THREAD_SAFE TRTParametersOfModulesB // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfModulesB;
......@@ -76,7 +77,7 @@ class TRTParametersOfModulesB
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfModulesC
class ATLAS_NOT_THREAD_SAFE TRTParametersOfModulesC // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfModulesC;
......@@ -76,7 +77,7 @@ private:
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfStrawPlanes
class ATLAS_NOT_THREAD_SAFE TRTParametersOfStrawPlanes // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfStrawPlanes;
......@@ -73,7 +74,7 @@ class TRTParametersOfStrawPlanes
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfWheelsA
class ATLAS_NOT_THREAD_SAFE TRTParametersOfWheelsA // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfWheelsA;
......@@ -67,7 +68,7 @@ class TRTParametersOfWheelsA
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfWheelsB
class ATLAS_NOT_THREAD_SAFE TRTParametersOfWheelsB // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfWheelsB;
......@@ -74,7 +75,7 @@ class TRTParametersOfWheelsB
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTParameters;
class TRTParametersOfWheelsC
class ATLAS_NOT_THREAD_SAFE TRTParametersOfWheelsC // Thread unsafe TRTParameters class is used.
{
friend class TRTConstructionOfWheelsC;
......@@ -67,7 +68,7 @@ class TRTParametersOfWheelsC
TRTParameters* m_pParameters;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRTUtilities_hh
......@@ -8,11 +8,12 @@
#include "globals.hh"
#include <fstream>
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class TRTOutputFile;
class TRTUtilities
class ATLAS_NOT_THREAD_SAFE TRTUtilities // This class uses thread unsafe TRTOutputFile. static TRTUtilities utilities cannot be static const for output streaming.
{
public:
~TRTUtilities();
......@@ -42,7 +43,7 @@ private:
static TRTUtilities* s_pUtilities;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -8,12 +8,13 @@
#include "globals.hh"
#include "AthenaKernel/MsgStreamMember.h"
#include "CxxUtils/checker_macros.h"
class G4LogicalVolume;
class G4VisAttributes;
class TRTVisualization
class ATLAS_NOT_THREAD_SAFE TRTVisualization // static variable and thread unsafe exit are used.
{
public:
~TRTVisualization();
......@@ -45,7 +46,7 @@ class TRTVisualization
static TRTVisualization* s_pVisualization;
mutable Athena::MsgStreamMember m_msg;
mutable Athena::MsgStreamMember m_msg ATLAS_THREAD_SAFE;
};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TRT_G4Utilities/TRTParameters.hh"
......@@ -42,7 +42,7 @@ TRTParameters::~TRTParameters()
// Called by TRTParameters
void TRTParameters::ReadInputFile(std::string fileName)
void TRTParameters::ReadInputFile ATLAS_NOT_THREAD_SAFE (std::string fileName) // Thread unsafe exit function is used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParameters::ReadInputFile" << endmsg;
......@@ -149,7 +149,7 @@ void TRTParameters::ReadInputFile(std::string fileName)
// Called by TRTParameters
void TRTParameters::PrintListOfParameters() const
void TRTParameters::PrintListOfParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTOutputFile class is used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParameters::PrintListOfParameters" << endmsg;
......@@ -171,7 +171,7 @@ void TRTParameters::PrintListOfParameters() const
// Called on demand
int TRTParameters::GetInteger(std::string parameterName) const
int TRTParameters::GetInteger ATLAS_NOT_THREAD_SAFE (std::string parameterName) const // Thread unsafe exit function is used.
{
int numberOfItems = m_multimapOfParameters.count(parameterName);
......@@ -203,7 +203,7 @@ int TRTParameters::GetInteger(std::string parameterName) const
// Called on demand
double TRTParameters::GetDouble(std::string parameterName) const
double TRTParameters::GetDouble ATLAS_NOT_THREAD_SAFE (std::string parameterName) const // Thread unsafe exit function is used.
{
int numberOfItems = m_multimapOfParameters.count(parameterName);
......@@ -235,7 +235,7 @@ double TRTParameters::GetDouble(std::string parameterName) const
// Called on demand
void TRTParameters::GetIntegerArray(std::string arrayName, int arraySize,
void TRTParameters::GetIntegerArray ATLAS_NOT_THREAD_SAFE (std::string arrayName, int arraySize, // Thread unsafe exit function is used.
int* array) const
{
int numberOfItems = m_multimapOfParameters.count(arrayName);
......@@ -269,7 +269,7 @@ void TRTParameters::GetIntegerArray(std::string arrayName, int arraySize,
// Called on demand
void TRTParameters::GetDoubleArray(std::string arrayName, int arraySize,
void TRTParameters::GetDoubleArray ATLAS_NOT_THREAD_SAFE (std::string arrayName, int arraySize, // Thread unsafe exit function is used.
double* array) const
{
int numberOfItems = m_multimapOfParameters.count(arrayName);
......@@ -303,7 +303,7 @@ void TRTParameters::GetDoubleArray(std::string arrayName, int arraySize,
// Called on demand
void TRTParameters::GetPartOfIntegerArray(std::string arrayName,
void TRTParameters::GetPartOfIntegerArray ATLAS_NOT_THREAD_SAFE (std::string arrayName, // Thread unsafe exit function is used.
int numberOfDemandedElements, int* array) const
{
int numberOfItems = m_multimapOfParameters.count(arrayName);
......@@ -338,7 +338,7 @@ void TRTParameters::GetPartOfIntegerArray(std::string arrayName,
// Called on demand
void TRTParameters::GetPartOfDoubleArray(std::string arrayName,
void TRTParameters::GetPartOfDoubleArray ATLAS_NOT_THREAD_SAFE (std::string arrayName, // Thread unsafe exit function is used.
int numberOfDemandedElements, double* array) const
{
int numberOfItems = m_multimapOfParameters.count(arrayName);
......@@ -373,7 +373,7 @@ void TRTParameters::GetPartOfDoubleArray(std::string arrayName,
// Called on demand
int TRTParameters::GetElementOfIntegerArray(std::string arrayName,
int TRTParameters::GetElementOfIntegerArray ATLAS_NOT_THREAD_SAFE (std::string arrayName, // Thread unsafe exit function is used.
int elementIndex) const
{
int numberOfItems = m_multimapOfParameters.count(arrayName);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "TRT_G4Utilities/TRTParametersOfBarrelStraws.hh"
......@@ -91,7 +91,7 @@ void TRTParametersOfBarrelStraws::DefineParameters()
// Called by TRTParametersOfBarrelStraws
void TRTParametersOfBarrelStraws::PrintParameters() const
void TRTParametersOfBarrelStraws::PrintParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTUtilities and TRTOutputFile classes are used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParametersOfBarrelStraws::PrintParameters"
<< endmsg;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20120 CERN for the benefit of the ATLAS collaboration
*/
......@@ -130,7 +130,7 @@ void TRTParametersOfStrawPlanes::DefineParameters()
// Called by TRTParametersOfStrawPlanes
void TRTParametersOfStrawPlanes::PrintParameters() const
void TRTParametersOfStrawPlanes::PrintParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTUtilities and TRTOutputFile classes are used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParametersOfStrawPlanes::PrintParameters" << endmsg;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -134,7 +134,7 @@ void TRTParametersOfWheelsA::DefineParameters()
// Called by TRTParametersOfWheelsA
void TRTParametersOfWheelsA::PrintParameters() const
void TRTParametersOfWheelsA::PrintParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTUtilities and TRTOutputFile classes are used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParametersOfWheelsA::PrintParameters" << endmsg;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -146,7 +146,7 @@ void TRTParametersOfWheelsB::DefineParameters()
// Called by TRTParametersOfWheelsB
void TRTParametersOfWheelsB::PrintParameters() const
void TRTParametersOfWheelsB::PrintParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTUtilities and TRTOutputFile classes are used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParametersOfWheelsB::PrintParameters" << endmsg;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
......@@ -134,7 +134,7 @@ void TRTParametersOfWheelsC::DefineParameters()
// Called by TRTParametersOfWheelsC
void TRTParametersOfWheelsC::PrintParameters() const
void TRTParametersOfWheelsC::PrintParameters ATLAS_NOT_THREAD_SAFE () const // Thread unsafe TRTUtilities and TRTOutputFile classes are used.
{
if (msgLevel(MSG::VERBOSE)) msg(MSG::VERBOSE) << "######### Method TRTParametersOfWheelsC::PrintParameters" << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment