summaryrefslogtreecommitdiffstats
path: root/travis-deps
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-26 19:15:35 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-01 18:02:45 +0200
commit2d363c39b9a3fbd8bdef05a0f8a981fc0c993182 (patch)
treefbdaca1543ba7815a91749a29dadf145465aee12 /travis-deps
parentddd873902aa488f05989cb221c6027168408cee2 (diff)
downloadmpv-2d363c39b9a3fbd8bdef05a0f8a981fc0c993182.tar.bz2
mpv-2d363c39b9a3fbd8bdef05a0f8a981fc0c993182.tar.xz
input: lock for accessing struct input_ctx
The previous code was locking only the input queue. That was too weak since it didn't protect the input_ctx data structure. So remove the locking on the queue and lock all the public functions that interact with the input_ctx. The private functions and public functions that do not act on the input_ctx (there are quite some functions doing mp_cmd manipulations for instance) are not locked. Some changes by wm4. Use a recursive mutex, and restructure some code to be less annoying with locks, such as converting code to single return, or making use of the recursive mutex.
Diffstat (limited to 'travis-deps')
0 files changed, 0 insertions, 0 deletions