#include <Timer.h>
Public Member Functions | |
CTimer (int period=100) | |
virtual | ~CTimer () |
void | run () |
void | add (long lDelay, CTimerTarget *pTarget, int timerType=0, int stateId=0) |
int | registerTarget (CTimerTarget *pTarget) |
void | requestTargetDeletion (CTimerTarget *pTarget) |
Static Public Member Functions | |
void | do_thread (void *param) |
Private Member Functions | |
void | checkForExpirations () |
void | handleDefunctTargets () |
bool | targetIsActive (long lTargetId) |
Private Attributes | |
boost::thread * | m_pThrd |
boost::mutex | m_mtxTimerInfoList |
boost::mutex | m_mtxActiveTimerSet |
boost::mutex | m_mtxDefunctVec |
boost::mutex | m_mtxStop |
boost::condition | m_condStop |
bool | m_bStop |
int | m_period |
LST_TIMER | m_lstTimer |
SET_LONG | m_setActive |
VEC_TIMERTARGET | m_vecDefunct |
|
Definition at line 26 of file Timer.cpp. References m_pThrd. |
|
Definition at line 33 of file Timer.cpp. References m_bStop, m_condStop, and m_pThrd. |
|
Definition at line 55 of file Timer.cpp. References checkForExpirations(), handleDefunctTargets(), m_bStop, m_condStop, m_mtxStop, and m_period. |
|
Definition at line 153 of file Timer.cpp. References bogotel::g_util, bogotel::CUtil::log(), m_lstTimer, m_mtxTimerInfoList, m_period, bogotel::timer_info::m_pTarget, and bogotel::timer_info::toString(). |
|
Definition at line 41 of file Timer.cpp. References bogotel::g_util, and bogotel::CUtil::log(). |
|
Definition at line 175 of file Timer.cpp. References bogotel::g_util, bogotel::CTimerTarget::getId(), bogotel::CUtil::log(), m_mtxActiveTimerSet, m_setActive, bogotel::resultFUNC_BAD_PARAMETER, bogotel::resultSUCCESS, and bogotel::CTimerTarget::toString(). Referenced by bogotel::CVoiceDev::registerIoOp(). |
|
Definition at line 192 of file Timer.cpp. References bogotel::g_util, bogotel::CUtil::log(), m_mtxDefunctVec, m_vecDefunct, and bogotel::CTimerTarget::toString(). Referenced by bogotel::CVoiceDev::terminateIoOp(). |
|
Definition at line 68 of file Timer.cpp. References bogotel::g_util, bogotel::CTimerTarget::getId(), bogotel::CUtil::log(), bogotel::timer_info::m_count, bogotel::timer_info::m_iTargetStateId, bogotel::timer_info::m_iTimerType, m_lstTimer, bogotel::timer_info::m_lTargetId, m_mtxTimerInfoList, bogotel::timer_info::m_pTarget, targetIsActive(), bogotel::CTimerTarget::timerExpired(), bogotel::timer_info::toString(), and bogotel::CTimerTarget::toString(). Referenced by run(). |
|
Delete all targets in the defunctTargets vector. Remove them from the active timers set to avoid attempts to send expiring timers to them. Definition at line 122 of file Timer.cpp. References bogotel::g_util, bogotel::CTimerTarget::getId(), bogotel::CUtil::log(), m_mtxActiveTimerSet, m_mtxDefunctVec, m_setActive, m_vecDefunct, and bogotel::CTimerTarget::toString(). Referenced by run(). |
|
Definition at line 111 of file Timer.cpp. References m_mtxActiveTimerSet, and m_setActive. Referenced by checkForExpirations(). |
|
|
|
Definition at line 130 of file Timer.h. Referenced by add(), and checkForExpirations(). |
|
Definition at line 131 of file Timer.h. Referenced by handleDefunctTargets(), registerTarget(), and targetIsActive(). |
|
Definition at line 132 of file Timer.h. Referenced by handleDefunctTargets(), and requestTargetDeletion(). |
|
Definition at line 133 of file Timer.h. Referenced by run(). |
|
|
|
|
|
|
|
Definition at line 140 of file Timer.h. Referenced by add(), and checkForExpirations(). |
|
Definition at line 142 of file Timer.h. Referenced by handleDefunctTargets(), registerTarget(), and targetIsActive(). |
|
Definition at line 144 of file Timer.h. Referenced by handleDefunctTargets(), and requestTargetDeletion(). |