C++ 简易线程池实现

//threadpool.h #ifndef THREADPOOL_H #define THREADPOOL_H #include <pthread.h> #include <deque> #include <vector> class ThreadPool{ typedef void (*Task)(); public: ThreadPool(int num); //线程池启动
相关文章
相关标签/搜索