projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef0aa27
)
Add writer thread timing.
author
Carl Hetherington
<cth@carlh.net>
Fri, 11 Jan 2013 19:29:03 +0000
(19:29 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 11 Jan 2013 19:29:03 +0000
(19:29 +0000)
src/lib/encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/encoder.cc
b/src/lib/encoder.cc
index f6d0cc40eb7d79eacd438b0e8a9c33b8b7232dfa..ef886689772397e9117f653f58d26c46f2d6a522 100644
(file)
--- a/
src/lib/encoder.cc
+++ b/
src/lib/encoder.cc
@@
-577,10
+577,12
@@
Encoder::writer_thread ()
{
while (1)
{
+ TIMING ("writer sleeps");
boost::mutex::scoped_lock lock (_writer_mutex);
while (_write_queue.empty() && !_terminate_writer) {
_writer_condition.wait (lock);
}
+ TIMING ("writer wakes with a queue of %1", _write_queue.size());
if (_terminate_writer) {
return;