summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-06 08:51:24 +0100
committerbunnei <bunneidev@gmail.com>2021-12-07 01:39:18 +0100
commit2e8d737a96f2326fe773ff29d2103d3a38c62df1 (patch)
treed8c97b47863e1963d7386fa09c6cb86cca9d1463
parenthle: kernel: Remove unnecessary virtual specifier on CancelWait. (diff)
downloadyuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.gz
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.bz2
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.lz
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.xz
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.zst
yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.zip
-rw-r--r--src/core/hle/kernel/k_condition_variable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp
index fcfb74ec1..aadcc297a 100644
--- a/src/core/hle/kernel/k_condition_variable.cpp
+++ b/src/core/hle/kernel/k_condition_variable.cpp
@@ -240,7 +240,7 @@ void KConditionVariable::SignalImpl(KThread* thread) {
void KConditionVariable::Signal(u64 cv_key, s32 count) {
// Perform signaling.
- int num_waiters = 0;
+ s32 num_waiters{};
{
KScopedSchedulerLock sl(kernel);
@@ -257,7 +257,7 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) {
// If we have no waiters, clear the has waiter flag.
if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) {
- const u32 has_waiter_flag = 0;
+ const u32 has_waiter_flag{};
WriteToUser(system, cv_key, std::addressof(has_waiter_flag));
}
}