summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-02 00:23:47 +0200
committerLioncash <mathew1800@gmail.com>2019-04-02 00:23:50 +0200
commit436624173916c2aea8d0ea0e83bebb299da281b2 (patch)
treec1b15cbe83d80e1dc17980431754a7b9ff2c24f0 /src/core/hle/kernel
parentkernel/wait_object: Make ShouldWait() take thread members by pointer-to-const (diff)
downloadyuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar.gz
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar.bz2
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar.lz
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar.xz
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.tar.zst
yuzu-436624173916c2aea8d0ea0e83bebb299da281b2.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp2
-rw-r--r--src/core/hle/kernel/thread.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 0e4f6c041..87638c655 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -367,7 +367,7 @@ void Thread::ChangeScheduler() {
system.CpuCore(processor_id).PrepareReschedule();
}
-bool Thread::AllWaitObjectsReady() {
+bool Thread::AllWaitObjectsReady() const {
return std::none_of(
wait_objects.begin(), wait_objects.end(),
[this](const SharedPtr<WaitObject>& object) { return object->ShouldWait(this); });
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index db563708b..73e5d1bb4 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -299,7 +299,7 @@ public:
}
/// Determines whether all the objects this thread is waiting on are ready.
- bool AllWaitObjectsReady();
+ bool AllWaitObjectsReady() const;
const MutexWaitingThreads& GetMutexWaitingThreads() const {
return wait_mutex_threads;