dolphin/Source/Core
EmptyChaos c1922783f8 Core: Threadsafety Synchronization Fixes (Frame Advance / FifoPlayer)
Fix Frame Advance and FifoPlayer pause/unpause/stop.

CPU::EnableStepping is not atomic but is called from multiple threads
which races and leaves the system in a random state; also instruction
stepping was unstable, m_StepEvent had an almost random value because
of the dual purpose it served which could cause races where CPU::Run
would SingleStep when it was supposed to be sleeping.

FifoPlayer never FinishStateMove()d which was causing it to deadlock.
Rather than partially reimplementing CPU::Run, just use CPUCoreBase
and then call CPU::Run(). More DRY and less likely to have weird bugs
specific to the player (i.e the previous freezing on pause/stop).

Refactor PowerPC::state into CPU since it manages the state of the
CPU Thread which is controlled by CPU, not PowerPC. This simplifies
the architecture somewhat and eliminates races that can be caused by
calling PowerPC state functions directly instead of using CPU's
(because they bypassed the EnableStepping lock).
2016-05-13 09:23:44 +10:00
..
AudioCommon Core: Threadsafety Synchronization Fixes (Frame Advance / FifoPlayer) 2016-05-13 09:23:44 +10:00
Common Core: Threadsafety Synchronization Fixes (Frame Advance / FifoPlayer) 2016-05-13 09:23:44 +10:00
Core Core: Threadsafety Synchronization Fixes (Frame Advance / FifoPlayer) 2016-05-13 09:23:44 +10:00
DiscIO DriveReader: Fix View > Show Drives 2016-04-26 21:24:08 +10:00
DolphinQt2 Brings visual studio build files up to date with recent Qt changes 2016-05-13 01:18:57 +10:00
DolphinWX Core: Threadsafety Synchronization Fixes (Frame Advance / FifoPlayer) 2016-05-13 09:23:44 +10:00
InputCommon XInput: Apply Rumble/Motor output only on changes (again) 2016-04-23 13:45:10 +02:00
UICommon Merge VideoBackendHardware into VideoBackend. 2016-01-12 23:18:58 +01:00
VideoBackends D3D12: Specify read/write ranges when calling Map/Unmap 2016-05-08 23:18:59 +10:00
VideoCommon D3D12: Implement XFB encoding/decoding (support Real XFB) 2016-05-08 23:18:51 +10:00
CMakeLists.txt [UI] Remove DolphinQt 2016-01-05 19:42:02 -06:00