From 9a93cc83b313ee14ee8b23d3f0afbce8eeb78884 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 15 Nov 2013 12:20:19 +0100 Subject: [PATCH] Include thread pool ID in debug messages. Refs #5050 --- lib/base/threadpool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/threadpool.cpp b/lib/base/threadpool.cpp index 2ffcb7dff..7557e0083 100644 --- a/lib/base/threadpool.cpp +++ b/lib/base/threadpool.cpp @@ -276,7 +276,7 @@ void ThreadPool::ManagerThreadProc(void) } std::ostringstream msgbuf; - msgbuf << "Pending tasks: " << pending << "; Average latency: " + msgbuf << "Pool #" << m_ID << ": Pending tasks: " << pending << "; Average latency: " << (long)(avg_latency * 1000) << "ms" << "; Max latency: " << (long)(max_latency * 1000) << "ms" << "; Threads: " << alive -- 2.40.0