mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 19:12:42 +02:00
kern: fix same is_current check in GetThreadContext
This commit is contained in:
parent
4e0670485b
commit
d81e2f981e
@ -422,8 +422,8 @@ namespace ams::kern {
|
|||||||
for (auto i = 0; i < static_cast<s32>(cpu::NumCores); ++i) {
|
for (auto i = 0; i < static_cast<s32>(cpu::NumCores); ++i) {
|
||||||
if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) {
|
if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) {
|
||||||
current = true;
|
current = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the thread is current, retry until it isn't. */
|
/* If the thread is current, retry until it isn't. */
|
||||||
|
Loading…
Reference in New Issue
Block a user