dolphin/Source/Core/Core/HW
Léo Lam f106a9637d Replace balanced Core::PauseAndLock calls with RunAsCPUThread
Core::PauseAndLock requires all calls to it to be balanced, like this:

    const bool was_unpaused = Core::PauseAndLock(true);
    // do stuff on the CPU thread
    Core::PauseAndLock(false, was_unpaused);

Aside from being a bit cumbersome, it turns out all callers really
don't need to know about was_unpaused at all. They just need to do
something on the CPU thread safely, including locking/unlocking.

So this commit replaces Core::PauseAndLock with a function that
makes both the purpose and the scope of what is being run on the
CPU thread visually clear. This makes it harder to accidentally run
something on the wrong thread, or forget the second call to
PauseAndLock to unpause, or forget that it needs to be passed
was_unpaused at the end.

We also don't need comments to indicate code X is being run on the
CPU thread anymore, as the function name makes it obvious.
2017-07-21 16:45:59 +08:00
..
DSPHLE FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
DSPLLE DSPDisassembler: remove unused base_addr parameter 2017-06-30 01:47:02 -07:00
DVD Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
EXI Remove region mismatch check for GCI folders 2017-07-20 15:24:07 +02:00
GCMemcard Remove region mismatch check for GCI folders 2017-07-20 15:24:07 +02:00
SI Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
WiimoteCommon Core: Add WiimoteCommon headers to the VS project 2017-06-15 18:38:21 -04:00
WiimoteEmu Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
WiimoteReal Replace StringFromInt with std::to_string 2017-07-05 13:49:33 +02:00
AudioInterface.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
AudioInterface.h
CPU.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
CPU.h Jit64: Use a temporary register for memory references. Part 1. 2017-04-12 20:53:17 +02:00
DSP.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
DSP.h AX-HLE: delay sending interrupt when done processing command list 2017-05-19 19:04:06 -07:00
GCKeyboard.cpp ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GCKeyboard.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GCKeyboardEmu.cpp Move 'Background Input' to controller config dialog 2017-03-13 13:43:20 -07:00
GCKeyboardEmu.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GCPad.cpp ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GCPad.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GCPadEmu.cpp Fix UB string comparisons 2017-06-06 09:02:29 +02:00
GCPadEmu.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
GPFifo.cpp Core: include what you use 2017-06-07 01:20:48 -04:00
GPFifo.h GPFifo: Use a pointer instead of an index 2017-04-14 10:37:47 +01:00
HW.cpp Initialise WiiRoot once per emulation session 2017-06-27 15:44:17 +02:00
HW.h
Memmap.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
Memmap.h Memmap: Remove unnecessary const on function declaration parameters 2017-03-06 14:08:07 -05:00
MemoryInterface.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
MemoryInterface.h
MMIO.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
MMIO.h
MMIOHandlers.h
ProcessorInterface.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
ProcessorInterface.h Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
Sram.cpp Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Sram.h
StreamADPCM.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
StreamADPCM.h
SystemTimers.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
SystemTimers.h IOS: Implement MIOS functionality 2017-02-08 15:07:34 +01:00
VideoInterface.cpp VideoInterface: Make clock frequency array constexpr 2017-03-26 19:30:44 -04:00
VideoInterface.h VideoInterface: Initialize union members directly where applicable 2017-03-26 18:42:09 -04:00
WII_IPC.cpp Core: Remove unnecessary includes 2017-06-15 18:52:22 -04:00
WII_IPC.h
Wiimote.cpp Drop remnants of the plugin system 2017-05-19 19:13:16 +02:00
Wiimote.h Drop remnants of the plugin system 2017-05-19 19:13:16 +02:00
WiiSaveCrypted.cpp FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
WiiSaveCrypted.h