From 80f913fadb1a03b50fd449c3416b331eb2512bea Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Thu, 5 Dec 2019 11:54:52 -0500 Subject: DRTVWR-476: Adjust LLCoros to new LLInstanceTracker API. --- indra/llcommon/llcoros.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'indra/llcommon') 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; -- cgit v1.2.3