diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-11 19:29:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-11 19:29:03 +0000 |
| commit | 7b81eb3b0b4e173404c30d754796c7339034c3c5 (patch) | |
| tree | d8d7c314a6d1205c66efcd3c18cd01d6cb3c0f8b /src/lib/encoder.cc | |
| parent | ef0aa27c671f9c34b9aad79015bcc50cb10c0fc5 (diff) | |
Add writer thread timing.
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index f6d0cc40e..ef8866897 100644 --- 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; |
