dolphin/Source/Core/DolphinQt2
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
..
Config Replace balanced Core::PauseAndLock calls with RunAsCPUThread 2017-07-21 16:45:59 +08:00
GameList Qt: Save sorting order 2017-07-12 18:25:54 +02:00
QtUtils DolphinQt2: FocusEventFilter -> WindowActivationEventFilter 2017-06-15 16:12:05 -07:00
Settings Qt: Shrink settings window and make widgets stretch 2017-07-16 14:50:52 -06:00
AboutDialog.cpp Qt: Don't show the Qt "What's this" button 2017-06-29 18:52:53 -06:00
AboutDialog.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CMakeLists.txt Qt/GraphicsSettings: Implement general tab 2017-06-28 20:42:01 +02:00
DolphinQt2.manifest Use .manifest file for apps on Windows 2017-02-10 14:18:45 -08:00
DolphinQt2.vcxproj Make Visual Studio happy 2017-06-28 20:42:01 +02:00
DolphinQt2.vcxproj.user msvc\qt: get rid of .filters; just display directory structure. 2017-06-24 01:52:49 -07:00
Host.cpp Merge pull request #5778 from ligfx/fixinputbitmaps 2017-07-14 13:08:13 +08:00
Host.h DolphinQt2/Host: cleanup 2017-07-13 12:58:32 -07:00
HotkeyScheduler.cpp DolphinQt2: replace Settings with SConfig where possible 2017-06-29 17:17:32 -07:00
HotkeyScheduler.h Qt: Implement hotkeys (+ configuration) 2017-06-06 13:49:49 +02:00
InDevelopmentWarning.cpp Qt: Make the "In Development" warning less threatening 2017-07-08 10:47:31 +02:00
InDevelopmentWarning.h DolphinQt2: Experimental GUI Warning Prompt. 2016-07-13 15:52:45 +10:00
Info.plist.in CMake: use CMAKE_OSX_DEPLOYMENT_TARGET 2017-01-24 01:27:41 -08:00
Main.cpp DolphinQt2: set QSettings parameters globally 2017-07-07 17:08:00 -07:00
MainWindow.cpp Qt: Fix missing window border after exiting fullscreen under Windows 2017-07-16 01:09:36 +02:00
MainWindow.h Merge pull request #5743 from spycrab/qt_fix_shutdown 2017-07-11 09:13:07 +02:00
MenuBar.cpp Qt: Implement sysmenu booting 2017-07-06 21:27:31 +02:00
MenuBar.h Qt: Add "Load System Menu" option to menubar 2017-07-06 19:48:10 +02:00
qt.conf CMake: use BundleUtilities to fix up Dolphin.app 2017-02-03 22:27:19 -08:00
RenderWidget.cpp RenderWidget: watch for activation/deactivation, not focus in/out 2017-07-13 12:58:32 -07:00
RenderWidget.h RenderWidget: watch for activation/deactivation, not focus in/out 2017-07-13 12:58:32 -07:00
Resources.cpp DolphinQt2: replace Settings with SConfig where possible 2017-06-29 17:17:32 -07:00
Resources.h GameListModel: update icons when theme changes 2017-06-05 17:04:29 -07:00
Settings.cpp DolphinQt2: set QSettings parameters globally 2017-07-07 17:08:00 -07:00
Settings.h DolphinQt2: set QSettings parameters globally 2017-07-07 17:08:00 -07:00
ToolBar.cpp Qt: Add Graphics option to tool bar 2017-06-28 20:13:37 +02:00
ToolBar.h Qt: Add Graphics option to tool bar 2017-06-28 20:13:37 +02:00
WiiUpdate.cpp Qt: Don't show the Qt "What's this" button 2017-06-29 18:52:53 -06:00
WiiUpdate.h Qt: Add menu item to perform online update 2017-06-28 11:23:08 +02:00