diff options
author | Weiyi Wang <wwylele@gmail.com> | 2018-10-02 11:06:42 -0400 |
---|---|---|
committer | fearlessTobi <thm.frey@gmail.com> | 2019-03-02 19:09:58 +0100 |
commit | 8b98f60e3c4c8a11f9de382fbf694173855f3a7a (patch) | |
tree | 1bbd230c022b094cf88ddcf0b47370529b9164ce /src/common/file_util.cpp | |
parent | 09ac66388c01187ed6a402efcad76984c8af9a2e (diff) |
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/common/file_util.cpp')
0 files changed, 0 insertions, 0 deletions