Skip to content
Snippets Groups Projects
Commit 67fd4f0d authored by Susumu Oda's avatar Susumu Oda
Browse files

Add ATLAS_CHECK_THREAD_SAFETY to InDetAlignTools package. Add...

Add ATLAS_CHECK_THREAD_SAFETY to InDetAlignTools package. Add ATLAS_NOT_THREAD_SAFE to InDetAlignDBTool because global variables and const_cast are used.
parent 44dfbcee
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ atlas_subdir( InDetAlignGenTools ) ...@@ -9,6 +9,7 @@ atlas_subdir( InDetAlignGenTools )
atlas_depends_on_subdirs( PUBLIC atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps Control/AthenaBaseComps
Control/AthenaKernel Control/AthenaKernel
Control/CxxUtils
Database/AthenaPOOL/AthenaPoolUtilities Database/AthenaPOOL/AthenaPoolUtilities
DetectorDescription/GeoPrimitives DetectorDescription/GeoPrimitives
DetectorDescription/Identifier DetectorDescription/Identifier
...@@ -55,7 +56,7 @@ atlas_add_component( InDetAlignGenTools ...@@ -55,7 +56,7 @@ atlas_add_component( InDetAlignGenTools
src/*.cxx src/*.cxx
src/components/*.cxx src/components/*.cxx
INCLUDE_DIRS ${CORAL_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} INCLUDE_DIRS ${CORAL_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS}
LINK_LIBRARIES ${CORAL_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps AthenaPoolUtilities GeoPrimitives Identifier EventPrimitives InDetAlignTrkInfo InDetPrepRawData TrkEventPrimitives TrkEventUtils TrkTrack TrkExInterfaces TrkToolInterfaces AthenaKernel AthContainers AtlasDetDescr DetDescrConditions GaudiKernel InDetIdentifier InDetReadoutGeometry PixelReadoutGeometry SCT_ReadoutGeometry TRT_ReadoutGeometry TrkMeasurementBase TrkParameters TrkPrepRawData TrkRIO_OnTrack TrkTrackSummary TrkTruthData TrkFitterInterfaces EventContainers TrackRecordLib ) LINK_LIBRARIES ${CORAL_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps AthenaPoolUtilities GeoPrimitives Identifier EventPrimitives InDetAlignTrkInfo InDetPrepRawData TrkEventPrimitives TrkEventUtils TrkTrack TrkExInterfaces TrkToolInterfaces AthenaKernel AthContainers AtlasDetDescr CxxUtils DetDescrConditions GaudiKernel InDetIdentifier InDetReadoutGeometry PixelReadoutGeometry SCT_ReadoutGeometry TRT_ReadoutGeometry TrkMeasurementBase TrkParameters TrkPrepRawData TrkRIO_OnTrack TrkTrackSummary TrkTruthData TrkFitterInterfaces EventContainers TrackRecordLib )
# Install files from the package: # Install files from the package:
atlas_install_headers( InDetAlignGenTools ) atlas_install_headers( InDetAlignGenTools )
......
InnerDetector/InDetAlignTools/InDetAlignGenTools
/* /*
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 INDETALIGNGENTOOLS_ALIGNDBTOOL_H #ifndef INDETALIGNGENTOOLS_ALIGNDBTOOL_H
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "GaudiKernel/ServiceHandle.h" #include "GaudiKernel/ServiceHandle.h"
#include "InDetAlignGenTools/IInDetAlignDBTool.h" #include "InDetAlignGenTools/IInDetAlignDBTool.h"
#include "AthenaPoolUtilities/CondAttrListCollection.h" #include "AthenaPoolUtilities/CondAttrListCollection.h"
#include "CxxUtils/checker_macros.h"
class PixelID; class PixelID;
class SCT_ID; class SCT_ID;
...@@ -46,7 +47,8 @@ namespace InDetDD { ...@@ -46,7 +47,8 @@ namespace InDetDD {
class SCT_DetectorManager; class SCT_DetectorManager;
} }
class InDetAlignDBTool: virtual public IInDetAlignDBTool, public AthAlgTool { class ATLAS_NOT_THREAD_SAFE InDetAlignDBTool: // Global variables and const_cast are used.
virtual public IInDetAlignDBTool, public AthAlgTool {
public: public:
InDetAlignDBTool(const std::string& type, const std::string& name, InDetAlignDBTool(const std::string& type, const std::string& name,
const IInterface* parent); const IInterface* parent);
......
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