2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]]

Prevents logic bugs from slipping through.
This commit is contained in:
Lioncash 2021-04-07 01:44:30 -04:00
parent c018769016
commit 1e964604bb

View file

@ -15,7 +15,7 @@
namespace Kernel { namespace Kernel {
class KScopedSchedulerLockAndSleep { class [[nodiscard]] KScopedSchedulerLockAndSleep {
public: public:
explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, KThread* t, s64 timeout) explicit KScopedSchedulerLockAndSleep(KernelCore& kernel, KThread* t, s64 timeout)
: kernel(kernel), thread(t), timeout_tick(timeout) { : kernel(kernel), thread(t), timeout_tick(timeout) {