summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader_notify.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-18 06:24:32 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-18 06:24:32 +0200
commit967307d3beb59b64e40c4b3f44ed839d87325e5c (patch)
tree31c44595c797f29df24a3890fa9c26cd3f4c7332 /src/video_core/shader_notify.cpp
parentDrop settings namespace (diff)
downloadyuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar.gz
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar.bz2
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar.lz
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar.xz
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.tar.zst
yuzu-967307d3beb59b64e40c4b3f44ed839d87325e5c.zip
Diffstat (limited to 'src/video_core/shader_notify.cpp')
-rw-r--r--src/video_core/shader_notify.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader_notify.cpp b/src/video_core/shader_notify.cpp
index 46fd0baae..c3c71657d 100644
--- a/src/video_core/shader_notify.cpp
+++ b/src/video_core/shader_notify.cpp
@@ -25,17 +25,17 @@ std::size_t ShaderNotify::GetShadersBuilding() {
}
std::size_t ShaderNotify::GetShadersBuildingAccurate() {
- std::shared_lock lock(mutex);
+ std::shared_lock lock{mutex};
return accurate_count;
}
void ShaderNotify::MarkShaderComplete() {
- std::unique_lock lock(mutex);
+ std::unique_lock lock{mutex};
accurate_count--;
}
void ShaderNotify::MarkSharderBuilding() {
- std::unique_lock lock(mutex);
+ std::unique_lock lock{mutex};
accurate_count++;
}