summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-01-08 14:39:47 +0100
committerGitHub <noreply@github.com>2019-01-08 14:39:47 +0100
commitd3e1d2ea000412ee40251656c3efa4375e91f092 (patch)
tree7c94a03c63f38605d04e5b435bd72e2458d1dc8f /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
parentb30a338dd6be34c2a0522f53f360c37660a97b8f (diff)
parent25d43ffd988775e63c3dfc302f9f6ec2c2eb71da (diff)
Merge pull request #7666 from jordan-woyak/input-shutdown-fix
ControllerInterface: Shutdown order and race condition fix.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
index d5567222a4..0d712e5245 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
@@ -56,7 +56,7 @@ public:
private:
std::vector<std::function<void()>> m_devices_changed_callbacks;
mutable std::mutex m_callbacks_mutex;
- bool m_is_init;
+ std::atomic<bool> m_is_init;
std::atomic<bool> m_is_populating_devices{false};
WindowSystemInfo m_wsi;
};