mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 05:50:08 +00:00
kernel/thread: Make AllWaitObjectsReady() a const qualified member function
Now that ShouldWait() is a const qualified member function, this one can be made const qualified as well, since it can handle passing a const qualified this pointer to ShouldWait().
This commit is contained in:
parent
20cc0b8d3c
commit
4366241739
@ -367,7 +367,7 @@ void Thread::ChangeScheduler() {
|
|||||||
system.CpuCore(processor_id).PrepareReschedule();
|
system.CpuCore(processor_id).PrepareReschedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Thread::AllWaitObjectsReady() {
|
bool Thread::AllWaitObjectsReady() const {
|
||||||
return std::none_of(
|
return std::none_of(
|
||||||
wait_objects.begin(), wait_objects.end(),
|
wait_objects.begin(), wait_objects.end(),
|
||||||
[this](const SharedPtr<WaitObject>& object) { return object->ShouldWait(this); });
|
[this](const SharedPtr<WaitObject>& object) { return object->ShouldWait(this); });
|
||||||
|
@ -299,7 +299,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Determines whether all the objects this thread is waiting on are ready.
|
/// Determines whether all the objects this thread is waiting on are ready.
|
||||||
bool AllWaitObjectsReady();
|
bool AllWaitObjectsReady() const;
|
||||||
|
|
||||||
const MutexWaitingThreads& GetMutexWaitingThreads() const {
|
const MutexWaitingThreads& GetMutexWaitingThreads() const {
|
||||||
return wait_mutex_threads;
|
return wait_mutex_threads;
|
||||||
|
Loading…
Reference in New Issue
Block a user