dolphin/Source/Core/DolphinWX/Input
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
..
ClassicInputConfigDiag.cpp InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
ClassicInputConfigDiag.h InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
DrumsInputConfigDiag.cpp InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
DrumsInputConfigDiag.h InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
GCKeyboardInputConfigDiag.cpp Completely redo All configuration dialog 2016-11-28 08:26:34 -05:00
GCKeyboardInputConfigDiag.h Completely redo All configuration dialog 2016-11-28 08:26:34 -05:00
GCPadInputConfigDiag.cpp Completely redo All configuration dialog 2016-11-28 08:26:34 -05:00
GCPadInputConfigDiag.h Completely redo All configuration dialog 2016-11-28 08:26:34 -05:00
GuitarInputConfigDiag.cpp Implement slider bar present on GHWT and GH5 controllers 2017-06-06 04:38:20 -07:00
GuitarInputConfigDiag.h InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
HotkeyInputConfigDiag.cpp Implement hotkey options group in HotkeyInputConfigDiag 2017-03-13 13:39:52 -07:00
HotkeyInputConfigDiag.h Implement hotkey options group in HotkeyInputConfigDiag 2017-03-13 13:39:52 -07:00
InputConfigDiag.cpp Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
InputConfigDiag.h DolphinWX: fix input bitmaps not working when background input is off 2017-07-12 00:12:07 -07:00
InputConfigDiagBitmaps.cpp Don't translate button names 2017-05-06 16:29:10 +02:00
MicButtonConfigDiag.cpp Fix some margin discrepancies 2016-12-31 17:58:39 -05:00
MicButtonConfigDiag.h Add a special input configuration dialog for the GameCube Mic 2016-12-05 18:09:31 -05:00
NunchukInputConfigDiag.cpp InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
NunchukInputConfigDiag.h InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
TurntableInputConfigDiag.cpp InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
TurntableInputConfigDiag.h InputConfigDialog pass the device_cbox to the wiimote extension dialogs 2017-01-27 01:06:38 -05:00
WiimoteInputConfigDiag.cpp Add i18n comments for the acronym IR 2017-04-08 16:00:09 +02:00
WiimoteInputConfigDiag.h Completely redo All configuration dialog 2016-11-28 08:26:34 -05:00