summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-12-05 11:54:52 -0500
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 19:24:25 -0400
commit80f913fadb1a03b50fd449c3416b331eb2512bea (patch)
tree0491ec5c32ae1e408f104392a1c5ef302149a08d /indra/llcommon
parent2a56ab44360aa49bd0df9281efc8a8a97a510013 (diff)
DRTVWR-476: Adjust LLCoros to new LLInstanceTracker API.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llcoros.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp
index 5f940de52b..9e0cceda2b 100644
--- a/indra/llcommon/llcoros.cpp
+++ b/indra/llcommon/llcoros.cpp
@@ -212,12 +212,11 @@ void LLCoros::printActiveCoroutines(const std::string& when)
{
LL_INFOS("LLCoros") << "-------------- List of active coroutines ------------";
F64 time = LLTimer::getTotalSeconds();
- for (auto it(CoroData::beginInstances()), end(CoroData::endInstances());
- it != end; ++it)
+ for (auto& cd : CoroData::instance_snapshot())
{
- F64 life_time = time - it->mCreationTime;
+ F64 life_time = time - cd.mCreationTime;
LL_CONT << LL_NEWLINE
- << it->mName << ' ' << it->mStatus << " life: " << life_time;
+ << cd.mName << ' ' << cd.mStatus << " life: " << life_time;
}
LL_CONT << LL_ENDL;
LL_INFOS("LLCoros") << "-----------------------------------------------------" << LL_ENDL;