diff options
| author | 2019-04-01 18:19:42 -0400 | |
|---|---|---|
| committer | 2019-04-01 18:19:45 -0400 | |
| commit | 20cc0b8d3cd46dfc8eed7689f93b6d41f320c709 (patch) | |
| tree | b1f78f8b7a5364d9fb17498eb469b414160827d8 /src/core/hle/kernel/thread.cpp | |
| parent | kernel/thread: Avoid sign conversion within GetCommandBufferAddress() (diff) | |
| download | yuzu-20cc0b8d3cd46dfc8eed7689f93b6d41f320c709.tar.gz yuzu-20cc0b8d3cd46dfc8eed7689f93b6d41f320c709.tar.xz yuzu-20cc0b8d3cd46dfc8eed7689f93b6d41f320c709.zip | |
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/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 332f96287..0e4f6c041 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | namespace Kernel { | 29 | namespace Kernel { |
| 30 | 30 | ||
| 31 | bool Thread::ShouldWait(Thread* thread) const { | 31 | bool Thread::ShouldWait(const Thread* thread) const { |
| 32 | return status != ThreadStatus::Dead; | 32 | return status != ThreadStatus::Dead; |
| 33 | } | 33 | } |
| 34 | 34 | ||