dolphin/Source/Core/DolphinWX/Config
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
..
AddUSBDeviceDiag.cpp DolphinWX: Add missing include for no-PCH builds 2017-02-08 05:24:46 +01:00
AddUSBDeviceDiag.h DolphinWX: Add USB passthrough settings 2017-02-05 11:36:47 +01:00
AdvancedConfigPane.cpp Fix date and time handling for custom RTC in WX. 2017-07-07 17:12:05 +02:00
AdvancedConfigPane.h Fix date and time handling for custom RTC in WX. 2017-07-07 17:12:05 +02:00
AudioConfigPane.cpp Changed OpenAL latency setting to really reflect how much time it is. 2017-06-27 06:54:28 -03:00
AudioConfigPane.h AudioConfigPane: Allow user-configuration of audio stretching 2017-04-12 13:56:29 +01:00
ConfigMain.cpp DolphinWX: defer gamelist scanning and switch to single-file cache. 2017-06-23 17:25:53 -07:00
ConfigMain.h DolphinWX: defer gamelist scanning and switch to single-file cache. 2017-06-23 17:25:53 -07:00
GameCubeConfigPane.cpp FileUtil: Add a class for Exists/IsDirectory/GetSize 2017-06-29 19:07:29 +02:00
GameCubeConfigPane.h WX: Replace 'BIOS' with 'IPL' 2017-06-04 10:20:16 +02:00
GCAdapterConfigDiag.cpp Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
GCAdapterConfigDiag.h GCAdapterConfigDiag: Mark OnUpdateAdapter parameter as unused. 2016-11-10 20:19:53 -05:00
GeneralConfigPane.cpp Remove JITIL 2017-05-19 22:21:07 +02:00
GeneralConfigPane.h x86-64 support on Android 2017-04-16 11:53:33 +02:00
InterfaceConfigPane.cpp Make the built-in wiitdb files optional 2017-07-10 10:16:06 +02:00
InterfaceConfigPane.h Make the built-in wiitdb files optional 2017-07-10 10:16:06 +02:00
PathConfigPane.cpp DolphinWX: defer gamelist scanning and switch to single-file cache. 2017-06-23 17:25:53 -07:00
PathConfigPane.h PathConfigPane: Prevent an invalid index assert 2017-06-14 12:07:25 +01:00
WiiConfigPane.cpp IOS: Convert the IOS kernel HLE code to a class 2017-04-30 17:18:53 +02:00
WiiConfigPane.h DolphinWX: Add USB passthrough settings 2017-02-05 11:36:47 +01:00