diff options
| author | JosJuice <josjuice@gmail.com> | 2019-01-08 14:39:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-08 14:39:47 +0100 |
| commit | d3e1d2ea000412ee40251656c3efa4375e91f092 (patch) | |
| tree | 7c94a03c63f38605d04e5b435bd72e2458d1dc8f /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | |
| parent | b30a338dd6be34c2a0522f53f360c37660a97b8f (diff) | |
| parent | 25d43ffd988775e63c3dfc302f9f6ec2c2eb71da (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.h | 2 |
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; }; |
