summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2019-05-19 15:05:56 +0100
committerGitHub <noreply@github.com>2019-05-19 15:05:56 +0100
commitac3775e6ae1b791f2a774369b83a50f072921c3e (patch)
treeecf0223b65e65d13050674f63dc3250652ae887f /src/video_core
parentb54bd3f018c1c8e2fbbf33a4ce8dea6aa251c88a (diff)
parentd6d809db87750a1e47d7a2a2d3f5e2d59d94f146 (diff)
Merge pull request #2468 from lioncash/deduction
yuzu: Remove explicit types from locks where applicable
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/gpu_thread.cpp2
-rw-r--r--src/video_core/gpu_thread.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 03856013f..1e2ff46b0 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -118,7 +118,7 @@ void SynchState::WaitForSynchronization(u64 fence) {
// Wait for the GPU to be idle (all commands to be executed)
{
MICROPROFILE_SCOPE(GPU_wait);
- std::unique_lock<std::mutex> lock{synchronization_mutex};
+ std::unique_lock lock{synchronization_mutex};
synchronization_condition.wait(lock, [this, fence] { return signaled_fence >= fence; });
}
}
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index cc14527c7..cdf86f562 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -109,7 +109,7 @@ struct SynchState final {
void TrySynchronize() {
if (IsSynchronized()) {
- std::lock_guard<std::mutex> lock{synchronization_mutex};
+ std::lock_guard lock{synchronization_mutex};
synchronization_condition.notify_one();
}
}