citra/src
Yuri Kunde Schlesner 52f58e64ef Kernel: Make WaitObjects share ownership of Threads waiting on them
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.)
2015-02-02 15:37:08 -02:00
..
assets Add citra icon to Windows executable and title bar 2014-12-31 00:38:03 -05:00
citra arm: Adios armemu 2015-01-31 20:43:03 -05:00
citra_qt Merge pull request #514 from rohit-n/fix-warnings 2015-02-01 00:31:06 -05:00
common Common: Fix SCOPE_EXIT to actually create unique identifiers. 2015-01-30 11:47:03 -02:00
core Kernel: Make WaitObjects share ownership of Threads waiting on them 2015-02-02 15:37:08 -02:00
video_core Pica: Implement blend factors. 2015-01-31 01:40:05 -05:00
CMakeLists.txt CMake cleanup 2014-09-01 18:06:30 -03:00