kernel/wait_object: Make ShouldWait() take thread members by pointer-to-const

Given this is intended as a querying function, it doesn't make sense to
allow the implementer to modify the state of the given thread.
This commit is contained in:
Lioncash 2019-04-01 18:19:42 -04:00
parent 2cdd110a6c
commit f842f4c699
11 changed files with 11 additions and 11 deletions

View file

@ -82,7 +82,7 @@ public:
*/
ResultCode HandleSyncRequest(SharedPtr<Thread> thread);
bool ShouldWait(Thread* thread) const override;
bool ShouldWait(const Thread* thread) const override;
void Acquire(Thread* thread) override;