summaryrefslogtreecommitdiff
path: root/src/lib/encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-09 15:16:16 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-09 15:16:16 +0000
commitfccc63ca722e8156843ecbe2063cb5c3ea6f5ceb (patch)
treea6c9e04e438d6a3a8420d2ad57cd58cb28e40807 /src/lib/encoder.cc
parent01d0c14f03698d25af51f7d1a1b3112958da1cf3 (diff)
More debugging.
Diffstat (limited to 'src/lib/encoder.cc')
-rw-r--r--src/lib/encoder.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc
index 00d6e6399..e7277d0dd 100644
--- a/src/lib/encoder.cc
+++ b/src/lib/encoder.cc
@@ -260,12 +260,16 @@ Encoder::terminate_threads ()
boost::mutex::scoped_lock threads_lock (_threads_mutex);
+ int n = 0;
for (list<boost::thread *>::iterator i = _threads.begin(); i != _threads.end(); ++i) {
+ LOG_GENERAL ("Terminating thread %1 of %2", n + 1, _threads.size ());
(*i)->interrupt ();
if ((*i)->joinable ()) {
(*i)->join ();
}
delete *i;
+ LOG_GENERAL_NC ("Thread terminated");
+ ++n;
}
_threads.clear ();