diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-01 18:19:42 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-01 18:19:45 -0400 |
| commit | 20cc0b8d3cd46dfc8eed7689f93b6d41f320c709 (patch) | |
| tree | b1f78f8b7a5364d9fb17498eb469b414160827d8 /src/core/hle/kernel/wait_object.h | |
| parent | 2d70c30fb2628b4cc3a23b6fda34c2211085b905 (diff) | |
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.
Diffstat (limited to 'src/core/hle/kernel/wait_object.h')
| -rw-r--r-- | src/core/hle/kernel/wait_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/wait_object.h b/src/core/hle/kernel/wait_object.h index 5987fb971..04464a51a 100644 --- a/src/core/hle/kernel/wait_object.h +++ b/src/core/hle/kernel/wait_object.h @@ -24,7 +24,7 @@ public: * @param thread The thread about which we're deciding. * @return True if the current thread should wait due to this object being unavailable */ - virtual bool ShouldWait(Thread* thread) const = 0; + virtual bool ShouldWait(const Thread* thread) const = 0; /// Acquire/lock the object for the specified thread if it is available virtual void Acquire(Thread* thread) = 0; |
