summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-06-07 16:34:44 +0100
committerCarl Hetherington <cth@carlh.net>2018-06-07 16:34:44 +0100
commit4fcceb85cbf029d65b26d18042c7bfe4ad326b2a (patch)
tree53d981f05e0415bd13dfe82fbed9c75333ebbf68 /src
parent72f62ee25c0262571b7dfc2104b644099f2d4720 (diff)
Check that we're not about to deadlock if the queue is full and we can't repeat-write.
Diffstat (limited to 'src')
-rw-r--r--src/lib/writer.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 39d6f6118..b135f4321 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -342,6 +342,8 @@ try
break;
}
+ DCPOMATIC_ASSERT (_queue.size() < _maximum_queue_size);
+
/* Nothing to do: wait until something happens which may indicate that we do */
LOG_TIMING (N_("writer-sleep queue=%1"), _queue.size());
_empty_condition.wait (lock);