Skip to content
Snippets Groups Projects
Commit 227cee3a authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

AsgTools: Missing lock.

Need to acquire mutex before reading s_tools.
parent afaac7d0
Branches svn/tags/GAUDI_v19r3@6013
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!47545AsgTools: Missing lock.
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// System include(s):
......@@ -57,6 +57,7 @@ namespace asg {
IAsgTool* ToolStore::get( const std::string& name, bool silent ) {
using namespace msgToolStore;
std::lock_guard<std::mutex> lock (s_toolMutex);
ToolMap_t::const_iterator itool = s_tools.find( name );
if( itool != s_tools.end() )
return itool->second;
......
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