|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
#include <LockedChrono.h>

Public Member Functions | |
| LockedChrono (ChronoEntity &c, bool &lock) | |
| constructor from the actual timer: start the timer | |
| ~LockedChrono () | |
| destructor: | |
Private Member Functions | |
| LockedChrono () | |
| no default constructor | |
Private Attributes | |
| ChronoEntity & | m_timer |
| the actual timer | |
| bool & | m_locker |
| the actual locker | |
| bool | m_locked |
| locked ? | |
Data-On-Demand service, complex algorithms, etc...
class MyClass ... { public: void doSomethingRecursive() const { ... LockedChrono timer ( m_chrono , m_lock ) ; ... // some direct or indirect recursive call: if ( ... ) { doSomethingRecursive () ; } ... } private: mutable bool m_lock ; // lock mutable ChronoEntity m_chrono ; // actual timer };
Definition at line 54 of file LockedChrono.h.
| Gaudi::Utils::LockedChrono::LockedChrono | ( | ChronoEntity & | c, | |
| bool & | lock | |||
| ) | [inline] |
| Gaudi::Utils::LockedChrono::~LockedChrono | ( | ) | [inline] |
| Gaudi::Utils::LockedChrono::LockedChrono | ( | ) | [private] |
no default constructor
ChronoEntity& Gaudi::Utils::LockedChrono::m_timer [private] |
bool& Gaudi::Utils::LockedChrono::m_locker [private] |
bool Gaudi::Utils::LockedChrono::m_locked [private] |