From fccc63ca722e8156843ecbe2063cb5c3ea6f5ceb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Dec 2015 15:16:16 +0000 Subject: More debugging. --- src/lib/encoder.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/encoder.cc') 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::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 (); -- cgit v1.2.3