#include <CReaper.h>
Public Types | |
typedef list< CEvent * > | CEventList |
typedef list< CEvent * >::iterator | CEventListIterator |
Public Methods | |
CReaper () | |
Default constructor. | |
virtual | ~CReaper () |
Destructor. | |
CEventList | getThreadOjbects () const |
virtual void | OnTimer () |
CEventListIterator | begin () |
CEventListIterator | end () |
int | size () |
Static Public Methods | |
CReaper * | getInstance () |
void | Add (CEvent *pEvent) |
Private Methods | |
CReaper & | operator= (const CReaper &rhs) |
Assignment. | |
int | operator== (const CReaper &rhs) const |
Comparison for equality. | |
int | operator!= (const CReaper &rhs) const |
CReaper (const CReaper &rhs) | |
Copy constructor. | |
Static Private Attributes | |
CEventList | m_ThreadObjects |
//!< Threads being monitored. | |
CReaper * | m_pInstance = 0 |
The CReaper is a singleton object as there's not sense in allowing multiple thread to reap the same list of objects.
Definition at line 330 of file CReaper.h.
|
Definition at line 333 of file CReaper.h. Referenced by getThreadOjbects(). |
|
Definition at line 334 of file CReaper.h. Referenced by OnTimer(). |
|
Default constructor. Default constructor. This is called when declarations of the form e.g.:
Definition at line 307 of file CReaper.cpp. References m_pInstance, nTiming(), and sName(). Referenced by getInstance(). |
|
Destructor. Destructor: Definition at line 325 of file CReaper.cpp. |
|
Copy constructor.
|
|
Add a CEvent derived object to the list of delete on exit objects. We lock the synchronization mutex to be sure there is serialized access to the member data.
Definition at line 341 of file CReaper.cpp. References m_ThreadObjects. |
|
Returns an iterator to the first item in the event list. Definition at line 383 of file CReaper.cpp. References m_ThreadObjects. Referenced by OnTimer(). |
|
Returns an end of iteration flag iterator.
Definition at line 393 of file CReaper.cpp. References m_ThreadObjects. Referenced by OnTimer(). |
|
Get the singleton instance of the reaper. Note that if the instance has not yet been made, it will be here. Definition at line 410 of file CReaper.cpp. References CReaper(), and m_pInstance. Referenced by CReadoutMain::operator()(). |
|
Definition at line 354 of file CReaper.h. References CEventList, and m_ThreadObjects. |
|
Called periodically to scan the list of CEvent delete on exit objects.
Definition at line 364 of file CReaper.cpp. References begin(), CEventListIterator, end(), and m_ThreadObjects. |
|
|
|
Assignment.
|
|
Comparison for equality.
|
|
Returns the number of entries in the event list. Definition at line 401 of file CReaper.cpp. References m_ThreadObjects. |
|
Definition at line 295 of file CReaper.cpp. Referenced by CReaper(), and getInstance(). |
|
//!< Threads being monitored.
Definition at line 294 of file CReaper.cpp. Referenced by Add(), begin(), end(), getThreadOjbects(), OnTimer(), and size(). |