diff options
author | wm4 <wm4@nowhere> | 2014-04-23 20:43:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-23 21:16:52 +0200 |
commit | 29b726039821ff3f0435644c791412ed8a75319a (patch) | |
tree | c689b69cb1488b8d3591ee4137b0005f265fe4c9 /video/vfcap.h | |
parent | ed7e7e2eb407031b3ba79bf485c1cdd34b7a2baf (diff) | |
download | mpv-29b726039821ff3f0435644c791412ed8a75319a.tar.bz2 mpv-29b726039821ff3f0435644c791412ed8a75319a.tar.xz |
dispatch: use a real lock for mp_dispatch_lock()
This is much simpler, leaves fairness isues etc. to the operating
system, and will work better with threading-related debugging tools.
The "trick" to this is that the lock can be acquired and held only while
the queue is in suspend mode. This way we don't need to make sure the
lock is held outside of mp_dispatch_queue_process, which would be quite
messy to get right, because it would have to be in locked state by
default.
Diffstat (limited to 'video/vfcap.h')
0 files changed, 0 insertions, 0 deletions