summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-10-13 18:00:25 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-10-13 18:00:25 -0300
commitb9a9b83bee124a86501905d0b75def4ccb1cb966 (patch)
tree8e7a42cb87ec56c2fadf3e75a31b1ead0c22514f /src/input_common/sdl/sdl_impl.cpp
parentd291fc1a517d0db07e4b32f5b4ad294c5e93e984 (diff)
kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues according to Visual Studio's profiler. It was consuming twice the time as arm_interface.Run(). The cost was not in the function itself but in the lockinig it required. Reimplement these functions using atomics and static storage instead of an unordered_map. This is a side effect to avoid locking and using linked lists for reads. Replace unordered_map with a linear search.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions