summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_console.h
diff options
context:
space:
mode:
authorGravatar german772022-04-02 00:02:31 -0600
committerGravatar Narr the Reg2022-04-07 13:18:03 -0500
commitfa5277ecdb363f22f31ad4d0b981e12dde4eed0e (patch)
treef8614e39d71c50c363a618945232af2a3e017627 /src/core/hid/emulated_console.h
parentMerge pull request #8164 from liamwhite/jit-stub (diff)
downloadyuzu-fa5277ecdb363f22f31ad4d0b981e12dde4eed0e.tar.gz
yuzu-fa5277ecdb363f22f31ad4d0b981e12dde4eed0e.tar.xz
yuzu-fa5277ecdb363f22f31ad4d0b981e12dde4eed0e.zip
core: hid: Reduce the amount of dataraces
Diffstat (limited to 'src/core/hid/emulated_console.h')
-rw-r--r--src/core/hid/emulated_console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hid/emulated_console.h b/src/core/hid/emulated_console.h
index 5eb170823..53677bdc5 100644
--- a/src/core/hid/emulated_console.h
+++ b/src/core/hid/emulated_console.h
@@ -183,6 +183,7 @@ private:
183 TouchDevices touch_devices; 183 TouchDevices touch_devices;
184 184
185 mutable std::mutex mutex; 185 mutable std::mutex mutex;
186 mutable std::mutex callback_mutex;
186 std::unordered_map<int, ConsoleUpdateCallback> callback_list; 187 std::unordered_map<int, ConsoleUpdateCallback> callback_list;
187 int last_callback_key = 0; 188 int last_callback_key = 0;
188 189