Fixed bug causing the video playback to freeze

This commit is contained in:
loki
2019-12-08 21:16:02 +01:00
parent 10cd1c0f2b
commit eb57c35ffc
4 changed files with 47 additions and 28 deletions
+6
View File
@@ -36,6 +36,12 @@ public:
_cv.notify_all();
}
bool peek() {
std::lock_guard lg { _lock };
return !_queue.empty();
}
status_t pop() {
std::unique_lock ul{_lock};