diff options
| author | 2018-10-02 11:06:42 -0400 | |
|---|---|---|
| committer | 2019-03-02 19:09:58 +0100 | |
| commit | 8b98f60e3c4c8a11f9de382fbf694173855f3a7a (patch) | |
| tree | 1bbd230c022b094cf88ddcf0b47370529b9164ce /src/input_common/sdl/sdl.cpp | |
| parent | Input: Remove global variables from SDL Input (diff) | |
| download | yuzu-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