ATLAS Offline Software
Loading...
Searching...
No Matches
EventInfoLockHelper.cxx
Go to the documentation of this file.
2
3
4 std::vector<EventInfoLockHelper::unlockFunc_t> EventInfoLockHelper::s_unlockFuncs;
5
6
8 s_unlockFuncs.push_back(fn);
9 }
10
11
12 bool EventInfoLockHelper::evalUnlockFunc(uint32_t runNbr, uint32_t lbNrb, uint64_t evtNbr) const {
13 for (auto& fn : s_unlockFuncs) {
14 if (fn(runNbr,lbNrb,evtNbr)) return true;
15 }
16 return false;
17 }
std::function< bool(uint32_t, uint32_t, uint64_t)> unlockFunc_t
static void addUnlockFunc(unlockFunc_t fn) ATLAS_NOT_THREAD_SAFE
Add a function defining if the flags are to be locked.
bool evalUnlockFunc(uint32_t runNbr, uint32_t lbNrb, uint64_t evtNbr) const
Check if the lock should happen or not.