mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-16 11:22:44 +00:00
Merge pull request #6884 from v1993/patch-1
Fix check is thread current in GetThreadContext
This commit is contained in:
commit
aa74aaf38f
|
@ -1078,9 +1078,9 @@ static ResultCode GetThreadContext(Core::System& system, VAddr out_context, Hand
|
||||||
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
|
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
|
||||||
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
|
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
|
||||||
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.
|
||||||
if (current) {
|
if (current) {
|
||||||
|
|
Loading…
Reference in a new issue