mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-15 08:17:59 -05:00
scheduler: Make HaveReadyThreads() a const member function
This function doesn't modify instance state, so the const qualifier can be added to it.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user