From f391a32487e88d983a1dfd1d1d2d0fd9c811d176 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 12 Mar 2014 10:52:07 +0100 Subject: [PATCH] Decrease the maximum number of threads allowed per ThreadPool. Refs #5748 --- lib/base/threadpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/threadpool.h b/lib/base/threadpool.h index f24a1d164..d1af26584 100644 --- a/lib/base/threadpool.h +++ b/lib/base/threadpool.h @@ -97,7 +97,7 @@ private: bool Stopped; - WorkerThread Threads[256]; + WorkerThread Threads[16]; Queue(void) : WaitTime(0), ServiceTime(0), TaskCount(0), Stopped(false) @@ -118,7 +118,7 @@ private: boost::condition_variable m_MgmtCV; bool m_Stopped; - Queue m_Queues[16]; + Queue m_Queues[4]; void ManagerThreadProc(void); void StatsThreadProc(void);