Skip to content

Commit

Permalink
Merge pull request cms-sw#3725 from Dr15Jones/threadSafeMutableInESRe…
Browse files Browse the repository at this point in the history
…cord

FWCore/Framework -- Make mutable in EventSetupRecord atomic
  • Loading branch information
nclopezo committed May 9, 2014
2 parents 1953572 + 3c362c7 commit 42cb44d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CondFormats/SiPixelObjects/interface/SiPixelQuality.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/GeometryVector/interface/LocalPoint.h"
#include "CondFormats/SiPixelObjects/interface/GlobalPixel.h"
#include "CondFormats/DataRecord/interface/SiPixelFedCablingMapRcd.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingMap.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFedCabling.h"
#include "CondFormats/SiPixelObjects/interface/PixelROC.h"
#include "CondFormats/SiPixelObjects/interface/LocalPixel.h"
#include "CondFormats/SiStripObjects/interface/SiStripDetVOff.h"

namespace edm {
class EventSetup;
}

class TrackerGeometry;

class SiPixelQuality {
Expand Down
1 change: 1 addition & 0 deletions CondTools/SiPixel/test/SiPixelBadModuleReader.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "CondFormats/SiPixelObjects/interface/SiPixelQuality.h"
#include "CondFormats/DataRecord/interface/SiPixelQualityFromDbRcd.h"
#include "CondFormats/DataRecord/interface/SiPixelQualityRcd.h"
#include "CondFormats/DataRecord/interface/SiPixelFedCablingMapRcd.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelFedCablingMap.h"
#include "CondTools/SiPixel/test/SiPixelBadModuleReader.h"
#include "DataFormats/DetId/interface/DetId.h"
Expand Down
5 changes: 4 additions & 1 deletion DPGAnalysis/SiStripTools/interface/Multiplicities.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "CalibTracker/Records/interface/SiStripQualityRcd.h"
#endif

#include "DataFormats/Common/interface/DetSetVector.h"
Expand All @@ -22,8 +23,10 @@
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CalibFormats/SiStripObjects/interface/SiStripQuality.h"
#include "CalibTracker/Records/interface/SiStripQualityRcd.h"

namespace edm {
class EventSetup;
};

#include <string>

Expand Down
3 changes: 2 additions & 1 deletion FWCore/Framework/interface/EventSetupRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ using the 'setEventSetup' and 'clearEventSetup' functions.
// system include files
#include <map>
#include <vector>
#include <atomic>

// forward declarations
namespace cms {
Expand Down Expand Up @@ -212,7 +213,7 @@ namespace edm {
std::map<DataKey, DataProxy const*> proxies_ ;
EventSetup const* eventSetup_;
unsigned long long cacheIdentifier_;
mutable bool transientAccessRequested_;
mutable std::atomic<bool> transientAccessRequested_;
};
}
}
Expand Down

0 comments on commit 42cb44d

Please sign in to comment.