summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-13 04:13:14 +0200
committerGitHub <noreply@github.com>2018-08-13 04:13:14 +0200
commit9608f51cdee2dd1d2bb493b02b109b1b280dfc28 (patch)
tree5b1d179c66eadc53c0ba534680a91ade726d08be /src/core/hle/kernel
parentMerge pull request #1042 from Subv/races (diff)
parentscheduler: Make HaveReadyThreads() a const member function (diff)
downloadyuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar.gz
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar.bz2
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar.lz
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar.xz
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.tar.zst
yuzu-9608f51cdee2dd1d2bb493b02b109b1b280dfc28.zip
Diffstat (limited to 'src/core/hle/kernel')
-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();