feat: 3.9.5.81 基础收发功能

This commit is contained in:
hugy committed 2023-06-26 18:23:47 +08:00
1 parent 66ea9d5428
commit 5a9f91b425
38 files changed
+21363 -28

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#ifndef WXHELPER_THREAD_POOL_H_
#define WXHELPER_THREAD_POOL_H_
#include "Windows.h"
#include "singleton.h"
namespace wxhelper {
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