mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
ControllerInterface: add mutex around callbacks vector
This commit is contained in:
parent
1ed7532af8
commit
fd7cbd633e
2 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue