feat : 3.9.7.29

This commit is contained in:
hugy committed 2023-10-17 20:54:52 +08:00
1 parent 9f2b0f9925
commit 2767576351
38 files changed
+18059

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#ifndef BASE_THREAD_POOL_H_
#define BASE_THREAD_POOL_H_
#include "singleton.h"
#include <windows.h>
namespace base {
class ThreadPool :public Singleton<ThreadPool>{
public:
~ThreadPool();
bool Create(unsigned long min = 1, unsigned long max = 4);
bool AddWork(PTP_WORK_CALLBACK callback,PVOID opt);
private:
PTP_POOL pool_;
PTP_CLEANUP_GROUP cleanup_group_;
TP_CALLBACK_ENVIRON env_;
};
} // namespace wxhelper
#endif