]> granicus.if.org Git - icinga2/commitdiff
Performance fixes.
authorGunnar Beutner <gunnar@beutner.name>
Sun, 17 Jun 2012 23:29:02 +0000 (01:29 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 17 Jun 2012 23:29:02 +0000 (01:29 +0200)
base/threadpool.h
base/timer.cpp

index 52b7664004a907694b13c2f2333ccab46f65751a..2eded6ef9c6e20f077ccbf078d14cf902b48979f 100644 (file)
@@ -12,7 +12,7 @@ public:
 
        typedef function<void()> Task;
 
-       ThreadPool(long numThreads = 16);
+       ThreadPool(long numThreads = 64);
        ~ThreadPool(void);
 
        static ThreadPool::Ptr GetDefaultPool(void);
@@ -33,4 +33,4 @@ private:
 
 }
 
-#endif /* THREADPOOL_H */
\ No newline at end of file
+#endif /* THREADPOOL_H */
index 9159abe908a534345fbd0db7dc102239d0a32bf1..caeaca71902557be40e61092abf743cde5d50e38 100644 (file)
@@ -131,8 +131,6 @@ void Timer::Start(void)
        Stop();
 
        Timers.push_back(GetSelf());
-
-       Reschedule(time(NULL) + m_Interval);
 }
 
 /**