ThreadPool does not have threadnum parameter anymore, you can add as many worker thread as you want later

master
Denes Matetelki 14 years ago
parent 4a13d359fa
commit ab92c991ec

1
.gitignore vendored

@ -4,6 +4,7 @@
*cmake
*.a
*.so
*/a.out
*/cov
*/lcov.info
*/lcov2.info

@ -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<Thread*> m_threads;
ConcurrentQueue<Task*> m_tasks;
// Mutex m_mutex;
};

Loading…
Cancel
Save