Skip to content
Snippets Groups Projects
Commit 0b59c424 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'fence.CxxUtils-20190203' into 'master'

CxxUtils: ConcurrentRangeMap potential data race.

See merge request !20853
parents b9d90366 88471514
No related branches found
No related tags found
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,!20853CxxUtils: ConcurrentRangeMap potential data race.
......@@ -204,6 +204,8 @@ CONCURRENTRANGEMAP::emplace (const RANGE& range,
end->first = range;
end->second = ptr.release();
std::atomic_thread_fence (std::memory_order_seq_cst);
// Update the last pointer.
m_last = end;
// Now the new element is visible to other threads.
......
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