diff options
| author | Michael M <mchtly@gmail.com> | 2017-11-10 12:29:25 -0800 |
|---|---|---|
| committer | Michael M <mchtly@gmail.com> | 2017-11-10 13:37:42 -0800 |
| commit | fd7cbd633edbac9e38592b9253a507410d7d6553 (patch) | |
| tree | 8de0ebe9dc0f51f95a19db9702014df7eda85a66 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | |
| parent | 1ed7532af850691eea8d7eee502f59ed20a37694 (diff) | |
ControllerInterface: add mutex around callbacks vector
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h index e70c135b3e..b485cda31a 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h @@ -4,14 +4,11 @@ #pragma once -#include <algorithm> #include <functional> -#include <map> -#include <sstream> -#include <string> +#include <memory> +#include <mutex> #include <vector> -#include "Common/CommonTypes.h" #include "InputCommon/ControllerInterface/Device.h" // enable disable sources @@ -58,6 +55,7 @@ public: private: std::vector<std::function<void()>> m_devices_changed_callbacks; + mutable std::mutex m_callbacks_mutex; bool m_is_init; void* m_hwnd; }; |
