core: hid: Reduce the amount of dataraces

This commit is contained in:
german77 2022-04-02 00:02:31 -06:00 committed by Narr the Reg
parent 172137f1a0
commit fa5277ecdb
6 changed files with 257 additions and 187 deletions

View file

@ -200,6 +200,7 @@ private:
MouseStickDevice mouse_stick_device;
mutable std::mutex mutex;
mutable std::mutex callback_mutex;
std::unordered_map<int, InterfaceUpdateCallback> callback_list;
int last_callback_key = 0;