1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

kern: fix same is_current check in GetThreadContext

This commit is contained in:
Michael Scire 2021-08-19 07:38:25 -07:00
parent 81bf8c577a
commit fe79bc253a

View file

@ -422,8 +422,8 @@ namespace ams::kern {
for (auto i = 0; i < static_cast<s32>(cpu::NumCores); ++i) {
if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) {
current = true;
break;
}
break;
}
/* If the thread is current, retry until it isn't. */