summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-12 18:55:56 +0200
committerLioncash <mathew1800@gmail.com>2018-08-12 18:55:58 +0200
commite850ff63bc51eb8ca2ec7b15167315ee648a4f73 (patch)
tree26103fad967b54689685c132dad950dae63c6cf7
parentthread_queue_list: Make contains() and get_first() const member functions (diff)
downloadyuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar.gz
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar.bz2
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar.lz
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar.xz
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.tar.zst
yuzu-e850ff63bc51eb8ca2ec7b15167315ee648a4f73.zip
-rw-r--r--src/core/hle/kernel/scheduler.cpp2
-rw-r--r--src/core/hle/kernel/scheduler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index 94065c736..e770b9103 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -25,7 +25,7 @@ Scheduler::~Scheduler() {
}
}
-bool Scheduler::HaveReadyThreads() {
+bool Scheduler::HaveReadyThreads() const {
std::lock_guard<std::mutex> lock(scheduler_mutex);
return ready_queue.get_first() != nullptr;
}
diff --git a/src/core/hle/kernel/scheduler.h b/src/core/hle/kernel/scheduler.h
index 1a4ee8f36..6a61ef64e 100644
--- a/src/core/hle/kernel/scheduler.h
+++ b/src/core/hle/kernel/scheduler.h
@@ -21,7 +21,7 @@ public:
~Scheduler();
/// Returns whether there are any threads that are ready to run.
- bool HaveReadyThreads();
+ bool HaveReadyThreads() const;
/// Reschedules to the next available thread (call after current thread is suspended)
void Reschedule();