core: hid: Reduce the amount of dataraces
This commit is contained in:
parent
172137f1a0
commit
fa5277ecdb
6 changed files with 257 additions and 187 deletions
|
@ -183,6 +183,7 @@ private:
|
|||
TouchDevices touch_devices;
|
||||
|
||||
mutable std::mutex mutex;
|
||||
mutable std::mutex callback_mutex;
|
||||
std::unordered_map<int, ConsoleUpdateCallback> callback_list;
|
||||
int last_callback_key = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue