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:
Lioncash 2018-08-12 12:55:56 -04:00
parent 95ff8e6aac
commit 6082427cbd
2 changed files with 2 additions and 2 deletions

View file

@ -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();