| 123 | } |
| 124 | |
| 125 | void sGameRecorded::AddState(const uint64 pTicks, const cStateRecorded& pEvent) { |
| 126 | std::lock_guard<std::mutex> lock(mLockMtx); |
| 127 | |
| 128 | if (mTickDisabled) |
| 129 | return; |
| 130 | |
| 131 | mState.insert(mState.end(), std::make_pair(pTicks, pEvent)); |
| 132 | } |
| 133 | |
| 134 | cStateRecorded* sGameRecorded::GetState(const uint64 pTicks) { |
| 135 | std::lock_guard<std::mutex> lock(mLockMtx); |
no test coverage detected