#include <llheartbeat.h>
Public Member Functions | |
LLHeartbeat (F32 secs_between_heartbeat=5.0f, F32 aggressive_heartbeat_panic_secs=10.0f, F32 aggressive_heartbeat_max_blocking_secs=4.0f) | |
~LLHeartbeat () | |
bool | send (F32 timeout_sec=0.0f) |
void | setSuppressed (bool is_suppressed) |
Private Member Functions | |
int | rawSend () |
int | rawSendWithTimeout (F32 timeout_sec) |
Private Attributes | |
F32 | mSecsBetweenHeartbeat |
F32 | mAggressiveHeartbeatPanicSecs |
F32 | mAggressiveHeartbeatMaxBlockingSecs |
bool | mSuppressed |
LLTimer | mBeatTimer |
LLTimer | mPanicTimer |
LLTimer | mTimeoutTimer |
Definition at line 42 of file llheartbeat.h.
LLHeartbeat::LLHeartbeat | ( | F32 | secs_between_heartbeat = 5.0f , |
|
F32 | aggressive_heartbeat_panic_secs = 10.0f , |
|||
F32 | aggressive_heartbeat_max_blocking_secs = 4.0f | |||
) |
Definition at line 40 of file llheartbeat.cpp.
References mAggressiveHeartbeatPanicSecs, mBeatTimer, mPanicTimer, mSecsBetweenHeartbeat, LLTimer::reset(), and LLTimer::setTimerExpirySec().
LLHeartbeat::~LLHeartbeat | ( | ) |
Definition at line 54 of file llheartbeat.cpp.
bool LLHeartbeat::send | ( | F32 | timeout_sec = 0.0f |
) |
Definition at line 108 of file llheartbeat.cpp.
References LLTimer::getElapsedTimeF32(), LLTimer::hasExpired(), llendl, llwarns, mAggressiveHeartbeatMaxBlockingSecs, mAggressiveHeartbeatPanicSecs, mBeatTimer, mPanicTimer, mSecsBetweenHeartbeat, rawSend(), rawSendWithTimeout(), LLTimer::reset(), and LLTimer::setTimerExpirySec().
void LLHeartbeat::setSuppressed | ( | bool | is_suppressed | ) |
int LLHeartbeat::rawSend | ( | ) | [private] |
Definition at line 67 of file llheartbeat.cpp.
References LL_HEARTBEAT_SIGNAL, and mSuppressed.
Referenced by rawSendWithTimeout(), and send().
int LLHeartbeat::rawSendWithTimeout | ( | F32 | timeout_sec | ) | [private] |
Definition at line 89 of file llheartbeat.cpp.
References LLTimer::hasExpired(), mTimeoutTimer, rawSend(), LLTimer::reset(), and LLTimer::setTimerExpirySec().
Referenced by send().
F32 LLHeartbeat::mSecsBetweenHeartbeat [private] |
bool LLHeartbeat::mSuppressed [private] |
LLTimer LLHeartbeat::mBeatTimer [private] |
LLTimer LLHeartbeat::mPanicTimer [private] |
LLTimer LLHeartbeat::mTimeoutTimer [private] |