summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2021-08-07 12:33:31 -0700
committerGravatar bunnei2021-08-07 12:33:31 -0700
commit5060a9721091b3cc994a73569bfd5ab573b9f47d (patch)
treec5443971ec7bd294bcc323c844785595f055db78 /src/core/hle/kernel
parentcore: cpu_manager: Use invalid core_id on init and simplify shutdown. (diff)
downloadyuzu-5060a9721091b3cc994a73569bfd5ab573b9f47d.tar.gz
yuzu-5060a9721091b3cc994a73569bfd5ab573b9f47d.tar.xz
yuzu-5060a9721091b3cc994a73569bfd5ab573b9f47d.zip
core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index a149744c8..8bbf66c52 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -773,7 +773,7 @@ public:
773 773
774class KScopedDisableDispatch { 774class KScopedDisableDispatch {
775public: 775public:
776 explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} { 776 [[nodiscard]] explicit KScopedDisableDispatch(KernelCore& kernel_) : kernel{kernel_} {
777 GetCurrentThread(kernel).DisableDispatch(); 777 GetCurrentThread(kernel).DisableDispatch();
778 } 778 }
779 779