Add writer thread timing.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Jan 2013 19:29:03 +0000 (19:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Jan 2013 19:29:03 +0000 (19:29 +0000)
src/lib/encoder.cc

index f6d0cc40eb7d79eacd438b0e8a9c33b8b7232dfa..ef886689772397e9117f653f58d26c46f2d6a522 100644 (file)
@@ -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;