📄 threadmanage.h
字号:
/******************************************************************Role:The file manage Linux thread ,include create thread etc. **CopyRight(c): ** flydish,2004,06,25 **History: ** Create by flydish,2004,06,25 * *****************************************************************/#ifndef _THREADMANAGE_H_#define _THREADMANAGE_H_#include "ThreadPool.h"#include "Thread.h"#include "../sync/sync.h"#include "WorkerThread.h"#include "Job.h"//===============================================================//CThreadManage is the class that interact with client//we usually use it as following//CThreadManage* thrmanage = new CThreadManage(10);//CXXJob job = new CXXJob();//thrmanage->Run(job,NULL);class CThreadManage{private: CThreadPool* m_Pool; int m_NumOfThread;protected:public: void SetParallelNum(int num); CThreadManage(); CThreadManage(int num); virtual ~CThreadManage(); void PostJob(CJob* job,void* jobdata); void Run(); void TerminateAll(void);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -