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

AsgTools: Hack to avoid TLS slowdown.

Ensure that TLS defined in this library actually gets used.
Avoids a potential slowdown in accessing TLS seen in simualation.
See ATLASSIM-4932.
parent 93e95499
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
/// @author Nils Krumnack
......@@ -23,3 +23,14 @@ namespace asg
ANA_MSG_SOURCE (msgProperty, "AsgTools.Property")
ANA_MSG_SOURCE (msgToolHandle, "AsgTools.AnaToolHandle")
}
// Ensure that TLS defined in this library actually gets used.
// Avoids a potential slowdown in accessing TLS seen in simualation.
// See ATLASSIM-4932.
namespace {
[[maybe_unused]]
thread_local int tlsDum;
[[maybe_unused]]
const int& msgDumRef = tlsDum;
}
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