mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00: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:
parent
95ff8e6aac
commit
6082427cbd
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue