Skip to content
Snippets Groups Projects
Commit 69aedf6a authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'test.CxxUtils-20190208' into 'master'

CxxUtils: Fix potential locking issue in ConcurrentRangeMap test.

See merge request atlas/athena!20979
parents 9c3d9c1d df181a42
9 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,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20979CxxUtils: Fix potential locking issue in ConcurrentRangeMap test.
/* /*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/ */
/* /*
*/ */
...@@ -134,8 +134,8 @@ public: ...@@ -134,8 +134,8 @@ public:
void quiescent (int slot) void quiescent (int slot)
{ {
unsigned int mask = (1<<slot); unsigned int mask = (1<<slot);
if ((m_inGrace & mask) == 0) return;
std::lock_guard<std::mutex> g (m_mutex); std::lock_guard<std::mutex> g (m_mutex);
if ((m_inGrace & mask) == 0) return;
m_inGrace &= ~mask; m_inGrace &= ~mask;
if (!m_inGrace) { if (!m_inGrace) {
for (T* p : m_garbage) delete p; for (T* p : m_garbage) delete p;
......
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