]> granicus.if.org Git - icinga2/commitdiff
Decrease the maximum number of threads allowed per ThreadPool.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 12 Mar 2014 09:52:07 +0000 (10:52 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 12 Mar 2014 09:52:07 +0000 (10:52 +0100)
Refs #5748

lib/base/threadpool.h

index f24a1d1648eb5ee879134c9ae89b05f28ce17208..d1af2658402a54b681a5ee4f2c0f73808278c94f 100644 (file)
@@ -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);