mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 16:31:21 -08:00
52f58e64ef
During normal operation, a thread waiting on an WaitObject and the object hold mutual references to each other for the duration of the wait. If a process is forcefully terminated (The CTR kernel has a SVC to do this, TerminateProcess, though no equivalent exists for threads.) its threads would also be stopped and destroyed, leaving dangling pointers in the WaitObjects. The solution is to simply have the Thread remove itself from WaitObjects when it is stopped. The vector of Threads in WaitObject has also been changed to hold SharedPtrs, just in case. (Better to have a reference cycle than a crash.) |
||
---|---|---|
.. | ||
arm | ||
file_sys | ||
hle | ||
hw | ||
loader | ||
CMakeLists.txt | ||
core_timing.cpp | ||
core_timing.h | ||
core.cpp | ||
core.h | ||
mem_map_funcs.cpp | ||
mem_map.cpp | ||
mem_map.h | ||
settings.cpp | ||
settings.h | ||
system.cpp | ||
system.h |