We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ac161 commit 43b6e87Copy full SHA for 43b6e87
2 files changed
NEWS
@@ -1,4 +1,6 @@
1
ver 0.24.10 (not yet released)
2
+* input
3
+ - cache: fix deadlock bug
4
* database
5
- upnp: allow building with libupnp 1.14.30 which has fixed the API breakage
6
* Windows
src/input/cache/Stream.cxx
@@ -64,9 +64,9 @@ CacheInputStream::Read(std::unique_lock<Mutex> &lock,
64
#lock) and lock #InputCacheItem's mutex (from
65
#BufferingInputStream) instead*/
66
const ScopeUnlock unlock{lock};
67
- const std::lock_guard protect{i.mutex};
+ std::unique_lock cache_lock{i.mutex};
68
69
- nbytes = i.Read(lock, _offset, dest);
+ nbytes = i.Read(cache_lock, _offset, dest);
70
}
71
72
offset += nbytes;
0 commit comments