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.

LLThrottleGroup::~LLThrottleGroup (  )  [inline]

Definition at line 78 of file llthrottle.h.


Member Function Documentation

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().

BOOL LLThrottleGroup::dynamicAdjust (  ) 

Definition at line 337 of file llthrottle.cpp.

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

Referenced by LLCircuit::updateWatchDogTimers().

void LLThrottleGroup::packThrottle ( LLDataPacker dp  )  const

Definition at line 200 of file llthrottle.cpp.

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

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().

BOOL LLThrottleGroup::setNominalBPS ( F32 throttle_vec  ) 

Definition at line 244 of file llthrottle.cpp.

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

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().

void LLThrottleGroup::unpackThrottle ( LLDataPacker dp  ) 

Definition at line 209 of file llthrottle.cpp.

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


Member Data Documentation

F32 LLThrottleGroup::mBitsAvailable[TC_EOF] [protected]

Definition at line 95 of file llthrottle.h.

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

F32 LLThrottleGroup::mBitsSentHistory[TC_EOF] [protected]

Definition at line 97 of file llthrottle.h.

Referenced by dynamicAdjust(), and resetDynamicAdjust().

F32 LLThrottleGroup::mBitsSentThisPeriod[TC_EOF] [protected]

Definition at line 96 of file llthrottle.h.

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

F32 LLThrottleGroup::mCurrentBPS[TC_EOF] [protected]

Definition at line 93 of file llthrottle.h.

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

F64 LLThrottleGroup::mDynamicAdjustTime [protected]

Definition at line 100 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().

F32 LLThrottleGroup::mNominalBPS[TC_EOF] [protected]

Definition at line 92 of file llthrottle.h.

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

F32 LLThrottleGroup::mThrottleTotal[TC_EOF]

Definition at line 89 of file llthrottle.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:51 2010 for Second Life Viewer by  doxygen 1.4.7