| 318 | } |
| 319 | |
| 320 | void StatisticsData::setFrameIndex(int frameIndex) |
| 321 | { |
| 322 | std::unique_lock<std::mutex> lock(this->accessMutex); |
| 323 | if (this->frameIdx != frameIndex) |
| 324 | { |
| 325 | DEBUG_STATDATA("StatisticsData::getTypesThatNeedLoading New frame index set " |
| 326 | << this->frameIdx << "->" << frameIndex); |
| 327 | this->frameCache.clear(); |
| 328 | this->frameIdx = frameIndex; |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | void StatisticsData::addStatType(const StatisticsType &type) |
| 333 | { |