diff options
author | wm4 <wm4@nowhere> | 2016-07-11 22:16:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-11 22:16:06 +0200 |
commit | f4d62dc4a0ae52883a081f1d0f955fd83d51e59a (patch) | |
tree | c47da2dd5c94f7c0d7b68d5dfce5fc82f33df1c7 /bootstrap.py | |
parent | 374600cec0590acad9cdba6b91f6b845921b5799 (diff) | |
download | mpv-f4d62dc4a0ae52883a081f1d0f955fd83d51e59a.tar.bz2 mpv-f4d62dc4a0ae52883a081f1d0f955fd83d51e59a.tar.xz |
cache: fix previous commit
The cache reader thread actually unlocks the mutex protecting the
underlying stream while reading from it. That's why other code goes out
of its way to run certain stream operations on the cache thread. Do the
same.
We could have this simpler by creating a mechanism that would "park" the
cache thread and make it wait for the lock (while we have it) in order
to gain exclusive access. This could be done in the future.
Diffstat (limited to 'bootstrap.py')
0 files changed, 0 insertions, 0 deletions