mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-07 12:57:17 +00:00
Update index.md
This commit is contained in:
parent
4000f150ac
commit
bd7f9e7325
|
@ -308,8 +308,8 @@ Fixing this blockade fixes shutdown operations on Android.
|
|||
|
||||
Next one is quite a bit more involved, as it involves the procedure needed to ~~kill~~ terminate a process, James Bond style.
|
||||
This procedure consists of two steps for each thread in the terminated process:
|
||||
- - The thread is marked for termination, and an interrupt is sent to all cores with that thread's affinity if it is runnable.
|
||||
- - The kernel then waits for the thread to actually terminate.
|
||||
- The thread is marked for termination, and an interrupt is sent to all cores with that thread's affinity if it is runnable.
|
||||
- The kernel then waits for the thread to actually terminate.
|
||||
|
||||
Runnable threads marked for termination are not removed from the scheduling priority queue. This means they can get scheduled during termination, even if the core already cleared the interrupt when a previous thread was terminated.
|
||||
{{< gh-hovercard "12025" "Checking for termination" >}} just before running the thread again, as the Switch does, fixed a very common shutdown deadlock on Android.
|
||||
|
|
Loading…
Reference in a new issue