diff options
author | Dave Parks <davep@lindenlab.com> | 2011-07-21 13:10:28 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-07-21 13:10:28 -0500 |
commit | 65d82fe192bdb4eb27766cf02eadaf78012f2817 (patch) | |
tree | 6b466c2a84a551fb3fcfeffbd99bf6b20004bfdb /indra/llcommon | |
parent | aaecc4c53ccbb71628988b10159f403d51836514 (diff) |
SH-2031 Fix for stall in "Cleanup"
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llfasttimer_class.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index bd594b06cf..675eda2fc5 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -228,6 +228,14 @@ void LLFastTimer::DeclareTimer::updateCachedPointers() // update cached pointer it->mFrameState = &it->mTimer.getFrameState(); } + + // also update frame states of timers on stack
+ LLFastTimer* cur_timerp = LLFastTimer::sCurTimerData.mCurTimer;
+ while(cur_timerp->mLastTimerData.mCurTimer != cur_timerp)
+ {
+ cur_timerp->mFrameState = &cur_timerp->mFrameState->mTimer->getFrameState();
+ cur_timerp = cur_timerp->mLastTimerData.mCurTimer;
+ } } //static |