mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 11:47:50 +00:00
k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]]
Prevents logic bugs from slipping through.
This commit is contained in:
parent
e295cb0474
commit
1af23a44b4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue