5#ifndef ATHENAKERNEL_TIMEOUT_H
6#define ATHENAKERNEL_TIMEOUT_H 1
18#include "GaudiKernel/ThreadLocalContext.h"
61 return *instances.get (ctx);
65 return instance (Gaudi::Hive::currentContext());
Maintain a set of objects, one per slot.
#define ATLAS_THREAD_SAFE
Class to modify timeout flag.
TimeoutMaster()
Prevent direct instantiation.
TimeoutMaster(TimeoutMaster &)
void resetTimeout(Timeout &instance)
Reset timeout.
TimeoutMaster & operator=(const TimeoutMaster &)
void setTimeout(Timeout &instance)
Set timeout.
Singleton to access the timeout flag.
void reset()
Reset timeout flag.
std::atomic< bool > m_state
Timeout flag.
void set()
Set timeout flag.
bool reached() const
Check if the timeout was reached.
friend class TimeoutMaster
Only classes derived from TimeoutMaster can modify timeout flag.
Timeout & operator=(const Timeout &)
static Timeout & instance()
Get reference to Timeout singleton.
Maintain a set of objects, one per slot.
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....