![]() |
ATLAS Offline Software
|
Singleton to access the timeout flag. More...
#include <Timeout.h>
Public Member Functions | |
| bool | reached () const |
| Check if the timeout was reached. More... | |
| Timeout () | |
Static Public Member Functions | |
| static Timeout & | instance () |
| Get reference to Timeout singleton. More... | |
| static Timeout & | instance (const EventContext &ctx) |
Private Member Functions | |
| void | set () |
| Set timeout flag. More... | |
| void | reset () |
| Reset timeout flag. More... | |
| Timeout (Timeout &) | |
| Timeout & | operator= (const Timeout &) |
Private Attributes | |
| std::atomic< bool > | m_state |
| Timeout flag. More... | |
Friends | |
| class | TimeoutMaster |
| Only classes derived from TimeoutMaster can modify timeout flag. More... | |
Singleton to access the timeout flag.
This singleton provides a global timeout flag. It can be set by the TimeoutMaster and algorithms, tools, etc. can query it in loops to react on the timeout signal.
|
private |
|
inlinestatic |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
friend |
Only classes derived from TimeoutMaster can modify timeout flag.
|
private |
1.8.18