From 25d43ffd988775e63c3dfc302f9f6ec2c2eb71da Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 2 Jan 2019 08:19:42 -0600 Subject: ControllerInterface: Shutdown order and race condition fix. --- Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h') 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> m_devices_changed_callbacks; mutable std::mutex m_callbacks_mutex; - bool m_is_init; + std::atomic m_is_init; std::atomic m_is_populating_devices{false}; WindowSystemInfo m_wsi; }; -- cgit v1.2.3