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 committed 2019-04-01 18:19:45 -04:00
1 parent 2d70c30fb2
commit 20cc0b8d3c
11 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@
namespace Kernel {
bool Thread::ShouldWait(Thread* thread) const {
bool Thread::ShouldWait(const Thread* thread) const {
return status != ThreadStatus::Dead;
}