aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-20 13:56:58 -0800
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-26 17:22:03 -0800
commitb285c2a4ed29a126b5bcfe46e2784bd1870bdf82 (patch)
treea671ac87427fb63a64f51be260928cb39b8d3737 /src/core/core.cpp
parentf273959205fbafd80a256117bc53b3c79517cbdb (diff)
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index ca2c28ce4e..140ff64511 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -110,8 +110,7 @@ void System::PrepareReschedule() {
}
PerfStats::Results System::GetAndResetPerfStats() {
- auto perf_stats = this->perf_stats.Lock();
- return perf_stats->GetAndResetStats(CoreTiming::GetGlobalTimeUs());
+ return perf_stats.GetAndResetStats(CoreTiming::GetGlobalTimeUs());
}
void System::Reschedule() {
@@ -147,7 +146,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
// Reset counters and set time origin to current frame
GetAndResetPerfStats();
- perf_stats.Lock()->BeginSystemFrame();
+ perf_stats.BeginSystemFrame();
return ResultStatus::Success;
}