mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-03-11 15:01:06 +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:
@@ -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