ATLAS Offline Software
Functions
Athena::AlgorithmTimerHandler Namespace Reference

Functions

void onAlarmThread (sigval_t sv)
 Function called by signals delivered via threads. More...
 

Function Documentation

◆ onAlarmThread()

void Athena::AlgorithmTimerHandler::onAlarmThread ( sigval_t  sv)

Function called by signals delivered via threads.

Definition at line 42 of file AlgorithmTimer.cxx.

43  {
44  AlgorithmTimer* me = static_cast<AlgorithmTimer*>(sv.sival_ptr);
45  if (me != nullptr && me->m_active)
46  me->m_onAlarm();
47  }
Athena::AlgorithmTimer::m_active
std::atomic_bool m_active
flag protecting race condition at stop
Definition: AlgorithmTimer.h:162
Athena::AlgorithmTimer::m_onAlarm
callbackFct_t m_onAlarm
user callback
Definition: AlgorithmTimer.h:161
LArCellConditions.sv
bool sv
Definition: LArCellConditions.py:45
Athena::AlgorithmTimer
Timer that invokes a user callback once the time is reached.
Definition: AlgorithmTimer.h:87