From ab92c991ec3d3fd06d853f6096e41385ba77b375 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Wed, 2 Mar 2011 11:07:58 +0100 Subject: [PATCH] ThreadPool does not have threadnum parameter anymore, you can add as many worker thread as you want later --- .gitignore | 1 + include/ThreadPool.hpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 33fc9db..331e00c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *cmake *.a *.so +*/a.out */cov */lcov.info */lcov2.info diff --git a/include/ThreadPool.hpp b/include/ThreadPool.hpp index 0c4b7f9..f88ac26 100644 --- a/include/ThreadPool.hpp +++ b/include/ThreadPool.hpp @@ -14,7 +14,7 @@ class ThreadPool public: - ThreadPool( const int threadNum ); + ThreadPool(); ~ThreadPool(); void pushTask( Task* task ); @@ -31,10 +31,8 @@ class ThreadPool ThreadPool( const ThreadPool& ); ThreadPool& operator=( const ThreadPool& ); - int m_threadNum; std::vector m_threads; ConcurrentQueue m_tasks; -// Mutex m_mutex; };