dolphin/Source/Core/DolphinQt2/Config/Mapping
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
..
GCKeyboardEmu.cpp Qt: Fix games crashing on start 2017-05-23 22:12:01 +02:00
GCKeyboardEmu.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
GCPadEmu.cpp Qt: Fix games crashing on start 2017-05-23 22:12:01 +02:00
GCPadEmu.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
GCPadWiiU.cpp DolphinQt2: replace Settings with SConfig where possible 2017-06-29 17:17:32 -07:00
GCPadWiiU.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
Hotkey3D.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
Hotkey3D.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyGeneral.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyGeneral.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyGraphics.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyGraphics.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyStates.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyStates.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyTAS.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyTAS.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyWii.cpp Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
HotkeyWii.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
IOWindow.cpp Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
IOWindow.h Qt: Implement advanced mapping I/O windows 2017-06-13 17:16:41 +02:00
MappingBool.cpp Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
MappingBool.h Qt2: remove unused variables 2017-05-28 23:01:41 +01:00
MappingButton.cpp Qt: Fix ampersands not displaying properly in mapping windows 2017-07-04 15:26:10 +02:00
MappingButton.h MappingButton: make m_block a Common::Flag 2017-06-15 16:15:07 -07:00
MappingCommon.cpp Qt: Implement advanced mapping I/O windows 2017-06-13 17:16:41 +02:00
MappingCommon.h Qt: Implement advanced mapping I/O windows 2017-06-13 17:16:41 +02:00
MappingNumeric.cpp Qt: Fix rounding errors 2017-05-21 12:03:13 +02:00
MappingNumeric.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
MappingWidget.cpp MappingButton: grab and release mouse and keyboard instead of calling parent SetBlockInputs 2017-06-15 16:15:07 -07:00
MappingWidget.h MappingButton: grab and release mouse and keyboard instead of calling parent SetBlockInputs 2017-06-15 16:15:07 -07:00
MappingWindow.cpp Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
MappingWindow.h MappingButton: grab and release mouse and keyboard instead of calling parent SetBlockInputs 2017-06-15 16:15:07 -07:00
WiimoteEmuExtension.cpp Qt: Fix games crashing on start 2017-05-23 22:12:01 +02:00
WiimoteEmuExtension.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
WiimoteEmuGeneral.cpp Qt: Fix games crashing on start 2017-05-23 22:12:01 +02:00
WiimoteEmuGeneral.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00
WiimoteEmuMotionControl.cpp Qt: Fix games crashing on start 2017-05-23 22:12:01 +02:00
WiimoteEmuMotionControl.h Qt: Implement button mapping dialogs 2017-05-20 17:53:17 +02:00