| 144 | } |
| 145 | |
| 146 | uint64 sGameRecorded::GetTotalTicks() { |
| 147 | std::lock_guard<std::mutex> lock(mLockMtx); |
| 148 | |
| 149 | if (!mState.size()) |
| 150 | return 0; |
| 151 | |
| 152 | return mState.rbegin()->first; |
| 153 | } |
| 154 | |
| 155 | void sGameRecorded::removeFrom(const uint64 pTicks) { |
| 156 | std::lock_guard<std::mutex> lock(mLockMtx); |