mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 01:50:10 +00:00
Thread: Replace a for-loop with range-for
This commit is contained in:
parent
db0a526fbb
commit
906da53958
@ -272,8 +272,7 @@ void DebugThreadQueue() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG_DEBUG(Kernel, "0x%02X 0x%08X (current)", thread->current_priority, GetCurrentThread()->GetHandle());
|
LOG_DEBUG(Kernel, "0x%02X 0x%08X (current)", thread->current_priority, GetCurrentThread()->GetHandle());
|
||||||
for (u32 i = 0; i < thread_queue.size(); i++) {
|
for (Handle handle : thread_queue) {
|
||||||
Handle handle = thread_queue[i];
|
|
||||||
s32 priority = thread_ready_queue.contains(handle);
|
s32 priority = thread_ready_queue.contains(handle);
|
||||||
if (priority != -1) {
|
if (priority != -1) {
|
||||||
LOG_DEBUG(Kernel, "0x%02X 0x%08X", priority, handle);
|
LOG_DEBUG(Kernel, "0x%02X 0x%08X", priority, handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user