summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl.cpp
diff options
context:
space:
mode:
authorGravatar Weiyi Wang2018-10-02 11:06:42 -0400
committerGravatar fearlessTobi2019-03-02 19:09:58 +0100
commit8b98f60e3c4c8a11f9de382fbf694173855f3a7a (patch)
tree1bbd230c022b094cf88ddcf0b47370529b9164ce /src/input_common/sdl/sdl.cpp
parentInput: Remove global variables from SDL Input (diff)
downloadyuzu-8b98f60e3c4c8a11f9de382fbf694173855f3a7a.tar.gz
yuzu-8b98f60e3c4c8a11f9de382fbf694173855f3a7a.tar.xz
yuzu-8b98f60e3c4c8a11f9de382fbf694173855f3a7a.zip
input/sdl: lock map mutex after SDL call
Any SDL invocation can call the even callback on the same thread, which can call GetSDLJoystickBySDLID and eventually cause double lock on joystick_map_mutex. To avoid this, lock guard should be placed as closer as possible to the object accessing code, so that any SDL invocation is with the mutex unlocked
Diffstat (limited to 'src/input_common/sdl/sdl.cpp')
0 files changed, 0 insertions, 0 deletions