VERY experimental Nintendo Switch 2 emulator
C++
hle: kernel: Remove unnecessary virtual specifier on CancelWait.
bunnei4b2aa52da9da
diff --git a/src/core/hle/kernel/k_address_arbiter.cpp b/src/core/hle/kernel/k_address_arbiter.cppindex a4ce99402f..783c698581 100644--- a/src/core/hle/kernel/k_address_arbiter.cpp+++ b/src/core/hle/kernel/k_address_arbiter.cpp@@ -91,8 +91,8 @@ public:explicit ThreadQueueImplForKAddressArbiter(KernelCore& kernel_, KAddressArbiter::ThreadTree* t): KThreadQueue(kernel_), m_tree(t) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// If the thread is waiting on an address arbiter, remove it from the tree.if (waiting_thread->IsWaitingForAddressArbiter()) {m_tree->erase(m_tree->iterator_to(*waiting_thread));diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cppindex f343e3c2f3..fcfb74ec15 100644--- a/src/core/hle/kernel/k_condition_variable.cpp+++ b/src/core/hle/kernel/k_condition_variable.cpp@@ -63,8 +63,8 @@ public:explicit ThreadQueueImplForKConditionVariableWaitForAddress(KernelCore& kernel_): KThreadQueue(kernel_) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Remove the thread as a waiter from its owner.waiting_thread->GetLockOwner()->RemoveWaiter(waiting_thread);@@ -82,8 +82,8 @@ public:KernelCore& kernel_, KConditionVariable::ThreadTree* t): KThreadQueue(kernel_), m_tree(t) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Remove the thread as a waiter from its owner.if (KThread* owner = waiting_thread->GetLockOwner(); owner != nullptr) {owner->RemoveWaiter(waiting_thread);diff --git a/src/core/hle/kernel/k_light_condition_variable.cpp b/src/core/hle/kernel/k_light_condition_variable.cppindex 7319a0ca0c..a8001fffc7 100644--- a/src/core/hle/kernel/k_light_condition_variable.cpp+++ b/src/core/hle/kernel/k_light_condition_variable.cpp@@ -18,8 +18,8 @@ public:bool term): KThreadQueue(kernel_), m_wait_list(wl), m_allow_terminating_thread(term) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Only process waits if we're allowed to.if (ResultTerminationRequested == wait_result && m_allow_terminating_thread) {return;diff --git a/src/core/hle/kernel/k_light_lock.cpp b/src/core/hle/kernel/k_light_lock.cppindex 9830506ff2..4620342eb0 100644--- a/src/core/hle/kernel/k_light_lock.cpp+++ b/src/core/hle/kernel/k_light_lock.cpp@@ -16,8 +16,8 @@ class ThreadQueueImplForKLightLock final : public KThreadQueue {public:explicit ThreadQueueImplForKLightLock(KernelCore& kernel_) : KThreadQueue(kernel_) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Remove the thread as a waiter from its owner.if (KThread* owner = waiting_thread->GetLockOwner(); owner != nullptr) {owner->RemoveWaiter(waiting_thread);diff --git a/src/core/hle/kernel/k_synchronization_object.cpp b/src/core/hle/kernel/k_synchronization_object.cppindex ffeb4b73f2..6ae93b0ad8 100644--- a/src/core/hle/kernel/k_synchronization_object.cpp+++ b/src/core/hle/kernel/k_synchronization_object.cpp@@ -46,8 +46,8 @@ public:KThreadQueue::EndWait(waiting_thread, wait_result);}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Remove all nodes from our list.for (auto i = 0; i < m_count; ++i) {m_objects[i]->UnlinkNode(std::addressof(m_nodes[i]));diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cppindex 03175e5c2c..752592e2ef 100644--- a/src/core/hle/kernel/k_thread.cpp+++ b/src/core/hle/kernel/k_thread.cpp@@ -72,8 +72,8 @@ public:explicit ThreadQueueImplForKThreadSetProperty(KernelCore& kernel_, KThread::WaiterList* wl): KThreadQueue(kernel_), m_wait_list(wl) {}- virtual void CancelWait(KThread* waiting_thread, ResultCode wait_result,- bool cancel_timer_task) override {+ void CancelWait(KThread* waiting_thread, ResultCode wait_result,+ bool cancel_timer_task) override {// Remove the thread from the wait list.m_wait_list->erase(m_wait_list->iterator_to(*waiting_thread));