1 #ifndef _pthread_threadedexecutor_
\r
2 #define _pthread_threadedexecutor_
\r
4 #include "noncopyable.h"
\r
5 #include "runnable.h"
\r
11 class ThreadedExecutor:public NonCopyable
\r
14 ThreadedExecutor() {}
\r
15 ~ThreadedExecutor();
\r
17 void Execute(Runnable *runnable);
\r
23 void CleanupFinished();
\r
25 std::vector<Thread *> m_threads;
\r
30 #endif // _pthread_threadedexecutor_
\r