LLThrottleGroup Class Reference

#include <llthrottle.h>

List of all members.

Public Member Functions

 LLThrottleGroup ()
 ~LLThrottleGroup ()
void resetDynamicAdjust ()
BOOL checkOverflow (S32 throttle_cat, F32 bits)
BOOL throttleOverflow (S32 throttle_cat, F32 bits)
BOOL dynamicAdjust ()
BOOL setNominalBPS (F32 *throttle_vec)
void packThrottle (LLDataPacker &dp) const
void unpackThrottle (LLDataPacker &dp)

Public Attributes

F32 mThrottleTotal [TC_EOF]

Protected Attributes

F32 mNominalBPS [TC_EOF]
F32 mCurrentBPS [TC_EOF]
F32 mBitsAvailable [TC_EOF]
F32 mBitsSentThisPeriod [TC_EOF]
F32 mBitsSentHistory [TC_EOF]
F64 mLastSendTime [TC_EOF]
F64 mDynamicAdjustTime


Detailed Description

Definition at line 74 of file llthrottle.h.


Constructor & Destructor Documentation

LLThrottleGroup::LLThrottleGroup (  ) 

Definition at line 188 of file llthrottle.cpp.

References gThrottleDefaultBPS, i, mNominalBPS, mThrottleTotal, resetDynamicAdjust(), S32, and TC_EOF.

Here is the call graph for this function:

LLThrottleGroup::~LLThrottleGroup (  )  [inline]

Definition at line 78 of file llthrottle.h.


Member Function Documentation

void LLThrottleGroup::resetDynamicAdjust (  ) 

Definition at line 228 of file llthrottle.cpp.

References LLMessageSystem::getMessageTimeSeconds(), i, mBitsAvailable, mBitsSentHistory, mBitsSentThisPeriod, mCurrentBPS, mDynamicAdjustTime, mLastSendTime, mNominalBPS, S32, TC_EOF, and THROTTLE_LOOKAHEAD_TIME.

Referenced by LLThrottleGroup(), and setNominalBPS().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottleGroup::checkOverflow ( S32  throttle_cat,
F32  bits 
)

Definition at line 268 of file llthrottle.cpp.

References FALSE, LLMessageSystem::getMessageTimeSeconds(), mBitsAvailable, mCurrentBPS, mLastSendTime, THROTTLE_LOOKAHEAD_TIME, and TRUE.

Referenced by LLCircuitData::resendUnackedPackets(), and LLTransferSourceChannel::updateTransfers().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottleGroup::throttleOverflow ( S32  throttle_cat,
F32  bits 
)

Definition at line 296 of file llthrottle.cpp.

References FALSE, LLMessageSystem::getMessageTimeSeconds(), mBitsAvailable, mBitsSentThisPeriod, mCurrentBPS, mLastSendTime, THROTTLE_LOOKAHEAD_TIME, and TRUE.

Referenced by LLCircuitData::resendUnackedPackets(), and LLTransferSourceChannel::updateTransfers().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottleGroup::dynamicAdjust (  ) 

Definition at line 337 of file llthrottle.cpp.

References FALSE, LLMessageSystem::getMessageTimeSeconds(), gThrottleMinimumBPS, i, llmax(), llround(), mBitsAvailable, mBitsSentHistory, mBitsSentThisPeriod, mCurrentBPS, mDynamicAdjustTime, mNominalBPS, S32, TC_EOF, TC_TASK, and TRUE.

Referenced by LLCircuit::updateWatchDogTimers().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottleGroup::setNominalBPS ( F32 throttle_vec  ) 

Definition at line 244 of file llthrottle.cpp.

References FALSE, i, mNominalBPS, resetDynamicAdjust(), S32, TC_EOF, and TRUE.

Here is the call graph for this function:

void LLThrottleGroup::packThrottle ( LLDataPacker dp  )  const

Definition at line 200 of file llthrottle.cpp.

References i, mThrottleTotal, LLDataPacker::packF32(), S32, and TC_EOF.

Here is the call graph for this function:

void LLThrottleGroup::unpackThrottle ( LLDataPacker dp  ) 

Definition at line 209 of file llthrottle.cpp.

References gThrottleMaximumBPS, i, llclamp(), mThrottleTotal, S32, TC_EOF, and LLDataPacker::unpackF32().

Here is the call graph for this function:


Member Data Documentation

Definition at line 89 of file llthrottle.h.

Referenced by LLThrottleGroup(), packThrottle(), and unpackThrottle().

F32 LLThrottleGroup::mNominalBPS[TC_EOF] [protected]

Definition at line 92 of file llthrottle.h.

Referenced by dynamicAdjust(), LLThrottleGroup(), resetDynamicAdjust(), and setNominalBPS().

F32 LLThrottleGroup::mCurrentBPS[TC_EOF] [protected]

Definition at line 93 of file llthrottle.h.

Referenced by checkOverflow(), dynamicAdjust(), resetDynamicAdjust(), and throttleOverflow().

F32 LLThrottleGroup::mBitsAvailable[TC_EOF] [protected]

Definition at line 95 of file llthrottle.h.

Referenced by checkOverflow(), dynamicAdjust(), resetDynamicAdjust(), and throttleOverflow().

Definition at line 96 of file llthrottle.h.

Referenced by dynamicAdjust(), resetDynamicAdjust(), and throttleOverflow().

Definition at line 97 of file llthrottle.h.

Referenced by dynamicAdjust(), and resetDynamicAdjust().

F64 LLThrottleGroup::mLastSendTime[TC_EOF] [protected]

Definition at line 99 of file llthrottle.h.

Referenced by checkOverflow(), resetDynamicAdjust(), and throttleOverflow().

Definition at line 100 of file llthrottle.h.

Referenced by dynamicAdjust(), and resetDynamicAdjust().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:15:37 2008 for SecondLife by  doxygen 1.5.5