[Base] Clock state now unaltered by threading.

- Removed tick and time values from ThreadSavedState.
- Removed affiliated get/set code from Save and Restore.
- Removed dangerous SetGuestTickCount method.
This commit is contained in:
Joel Linn
2019-11-20 18:47:34 +01:00
committed by Rick Gibbed
parent d6ce72ddc9
commit 7e244e0488
3 changed files with 3 additions and 24 deletions

View File

@@ -126,13 +126,6 @@ uint32_t Clock::QueryGuestUptimeMillis() {
std::numeric_limits<uint32_t>::max()));
}
void Clock::SetGuestTickCount(uint64_t tick_count) {
std::lock_guard<std::mutex> lock(tick_mutex_);
last_host_tick_count_ = Clock::QueryHostTickCount();
last_guest_tick_count_ = tick_count;
}
void Clock::SetGuestSystemTime(uint64_t system_time) {
// Query the filetime offset to calculate a new base time.
auto guest_system_time_offset = QueryGuestSystemTimeOffset();